yuriylsh / languageext.unittesting Goto Github PK
View Code? Open in Web Editor NEWHelps with unit testing LanguageExt code
License: MIT License
Helps with unit testing LanguageExt code
License: MIT License
Hi @yuriylsh, I have added this project to the lang-ext wiki: https://github.com/louthy/language-ext/wiki
If you feel like you'd rather not have the attention, please let me know and I'll remove it.
Good work on the project, it looks great!
Not sure if this problem is because I'm using MsTest not Xunit, but I have the following...
[TestMethod]
public void Investor_CurrentTerm_OneForTheCurrentDate() {
Investor investor = new() {
Terms = new List<Term> {
new() { Start = new(2020, 1, 1), End = new(2020, 12, 31) }
}
};
Option<Term> term = investor.CurrentTerm(_date);
term.ShouldBeSome(t => Assert.Equals(new DateTime(2020, 1, 1), t.Start));
}
However, this fails with the message shown above, even though this is how you show the test on the main project page. You own unit tests don't seem to do this kind of test, so no help there.
If I change the last line to...
term.ShouldBeSome(t => Assert.AreEqual(new DateTime(2020, 1, 1), t.Start));
...then the test is inconclusive.
How do I test this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.