Closed Aryan-sharma11 closed 2 years ago
Used the NUnit framework for Unit testing
Referred material https://docs.microsoft.com/en-us/dotnet/core/testing/unit-testing-fsharp-with-nunit
The test only focusses on the F sharp functions only right now
Attributes I used are :
[ TestFixture ] - denotes a class that contains a test
[ Test ] - marks the beginning of a test
Assert - used to test an expression, upon a failure in Debug mode, an assertion generates a system error dialog box
NUnit vs XUnit
xUnit is much more extensible when compared to NUnit
The [Fact] attribute is used instead of the [Test] attribute.
[Fact] attribute to implement non parameterized tests, whereas the [Theory] attribute is used for parameterized tests
Okay, this sounds good.
xUnit is much more extensible when compared to NUnit
Then shall we continue with xunit
for the time being?
Okay I added the XUnit framework too
Okay, this sounds good.
xUnit is much more extensible when compared to NUnit
Then shall we continue with
xunit
for the time being?
Used the NUnit framework for Unit testing
Referred material https://docs.microsoft.com/en-us/dotnet/core/testing/unit-testing-fsharp-with-nunit
The test only focuses on the F sharp functions right now