Skip to content

Commit

Permalink
Migrate unit test asserts (#198)
Browse files Browse the repository at this point in the history
***NO_CI***
  • Loading branch information
josesimoes authored Dec 19, 2022
1 parent 7ec7e4b commit 47525b0
Show file tree
Hide file tree
Showing 91 changed files with 3,478 additions and 3,478 deletions.
4 changes: 2 additions & 2 deletions Tests/NFUnitTestArithmetic/NFUnitTestArithmetic.nfproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</ItemGroup>
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets')" />
<!-- MANUAL UPDATE HERE -->
<Import Project="..\..\packages\nanoFramework.TestFramework.2.0.43\build\nanoFramework.TestFramework.targets" Condition="Exists('..\..\packages\nanoFramework.TestFramework.2.0.43\build\nanoFramework.TestFramework.targets')" />
<Import Project="..\..\packages\nanoFramework.TestFramework.2.1.53\build\nanoFramework.TestFramework.targets" Condition="Exists('..\..\packages\nanoFramework.TestFramework.2.1.53\build\nanoFramework.TestFramework.targets')" />
<ProjectExtensions>
<ProjectCapabilities>
<ProjectConfigurationsDeclaredAsItems />
Expand All @@ -48,6 +48,6 @@
<PropertyGroup>
<WarningText>Update the Import path in nfproj to the correct nanoFramework.TestFramework NuGet package folder.</WarningText>
</PropertyGroup>
<Warning Condition="!Exists('..\..\packages\nanoFramework.TestFramework.2.0.43\build\nanoFramework.TestFramework.targets')" Text="'$(WarningText)'" />
<Warning Condition="!Exists('..\..\packages\nanoFramework.TestFramework.2.1.53\build\nanoFramework.TestFramework.targets')" Text="'$(WarningText)'" />
</Target>
</Project>
86 changes: 43 additions & 43 deletions Tests/NFUnitTestArithmetic/UnitTestArithmeticTest1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,306 +16,306 @@ public void Arith_arith001_Test()
{
OutputHelper.WriteLine("Section 7.4 ");
OutputHelper.WriteLine("This code tests basic literal integral arthimetic additive expressions.");
Assert.True(Arith_TestClass_arith001.testMethod());
Assert.IsTrue(Arith_TestClass_arith001.testMethod());
}

[TestMethod]
public void Arith_arith003_Test()
{
OutputHelper.WriteLine("Section 7.4 ");
OutputHelper.WriteLine("This code tests basic literal integral arthimetic multiplicative expressions.");
Assert.True(Arith_TestClass_arith003.testMethod());
Assert.IsTrue(Arith_TestClass_arith003.testMethod());
}

[TestMethod]
public void Arith_arith005_Test()
{
OutputHelper.WriteLine("Section 7.4 ");
OutputHelper.WriteLine("This code tests basic integral arthimetic additive expressions using variables.");
Assert.True(Arith_TestClass_arith005.testMethod());
Assert.IsTrue(Arith_TestClass_arith005.testMethod());
}

[TestMethod]
public void Arith_arith007_Test()
{
OutputHelper.WriteLine("Section 7.4 ");
OutputHelper.WriteLine("This code tests basic integral arthimetic multiplicative expressions with variables.");
Assert.True(Arith_TestClass_arith007.testMethod());
Assert.IsTrue(Arith_TestClass_arith007.testMethod());
}

[TestMethod]
public void Arith_arith023_Test()
{
OutputHelper.WriteLine("Section 7.4 ");
OutputHelper.WriteLine("This code tests enum additive expressions.");
Assert.True(Arith_TestClass_arith023.testMethod());
Assert.IsTrue(Arith_TestClass_arith023.testMethod());
}

[TestMethod]
public void Arith_arith024_Test()
{
OutputHelper.WriteLine("Section 7.4 ");
OutputHelper.WriteLine("This code tests enum additive expressions.");
Assert.True(Arith_TestClass_arith024.testMethod());
Assert.IsTrue(Arith_TestClass_arith024.testMethod());
}

[TestMethod]
public void Arith_arith028_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith028.testMethod());
Assert.IsTrue(Arith_TestClass_arith028.testMethod());
}

[TestMethod]
public void Arith_arith029_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith029.testMethod());
Assert.IsTrue(Arith_TestClass_arith029.testMethod());
}

[TestMethod]
public void Arith_arith030_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith030.testMethod());
Assert.IsTrue(Arith_TestClass_arith030.testMethod());
}

[TestMethod]
public void Arith_arith031_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith031.testMethod());
Assert.IsTrue(Arith_TestClass_arith031.testMethod());
}

[TestMethod]
public void Arith_arith032_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith032.testMethod());
Assert.IsTrue(Arith_TestClass_arith032.testMethod());
}

[TestMethod]
public void Arith_arith033_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith033.testMethod());
Assert.IsTrue(Arith_TestClass_arith033.testMethod());
}

[TestMethod]
public void Arith_arith034_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith034.testMethod());
Assert.IsTrue(Arith_TestClass_arith034.testMethod());
}

[TestMethod]
public void Arith_arith035_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith035.testMethod());
Assert.IsTrue(Arith_TestClass_arith035.testMethod());
}

[TestMethod]
public void Arith_arith036_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith036.testMethod());
Assert.IsTrue(Arith_TestClass_arith036.testMethod());
}

[TestMethod]
public void Arith_arith037_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith037.testMethod());
Assert.IsTrue(Arith_TestClass_arith037.testMethod());
}

[TestMethod]
public void Arith_arith038_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith038.testMethod());
Assert.IsTrue(Arith_TestClass_arith038.testMethod());
}

[TestMethod]
public void Arith_arith039_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith039.testMethod());
Assert.IsTrue(Arith_TestClass_arith039.testMethod());
}

[TestMethod]
public void Arith_arith040_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith040.testMethod());
Assert.IsTrue(Arith_TestClass_arith040.testMethod());
}

[TestMethod]
public void Arith_arith041_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith041.testMethod());
Assert.IsTrue(Arith_TestClass_arith041.testMethod());
}

[TestMethod]
public void Arith_arith042_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith042.testMethod());
Assert.IsTrue(Arith_TestClass_arith042.testMethod());
}

[TestMethod]
public void Arith_arith043_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith043.testMethod());
Assert.IsTrue(Arith_TestClass_arith043.testMethod());
}

[TestMethod]
public void Arith_arith044_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith044.testMethod());
Assert.IsTrue(Arith_TestClass_arith044.testMethod());
}

[TestMethod]
public void Arith_arith045_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith045.testMethod());
Assert.IsTrue(Arith_TestClass_arith045.testMethod());
}

[TestMethod]
public void Arith_arith046_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith046.testMethod());
Assert.IsTrue(Arith_TestClass_arith046.testMethod());
}

[TestMethod]
public void Arith_arith047_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith047.testMethod());
Assert.IsTrue(Arith_TestClass_arith047.testMethod());
}

[TestMethod]
public void Arith_arith048_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith048.testMethod());
Assert.IsTrue(Arith_TestClass_arith048.testMethod());
}

[TestMethod]
public void Arith_arith049_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith049.testMethod());
Assert.IsTrue(Arith_TestClass_arith049.testMethod());
}

[TestMethod]
public void Arith_arith050_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith050.testMethod());
Assert.IsTrue(Arith_TestClass_arith050.testMethod());
}

[TestMethod]
public void Arith_arith051_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith051.testMethod());
Assert.IsTrue(Arith_TestClass_arith051.testMethod());
}

[TestMethod]
public void Arith_arith052_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith052.testMethod());
Assert.IsTrue(Arith_TestClass_arith052.testMethod());
}

[TestMethod]
public void Arith_arith053_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith053.testMethod());
Assert.IsTrue(Arith_TestClass_arith053.testMethod());
}

[TestMethod]
public void Arith_arith054_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith054.testMethod());
Assert.IsTrue(Arith_TestClass_arith054.testMethod());
}

[TestMethod]
public void Arith_arith055_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith055.testMethod());
Assert.IsTrue(Arith_TestClass_arith055.testMethod());
}

[TestMethod]
public void Arith_arith056_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith056.testMethod());
Assert.IsTrue(Arith_TestClass_arith056.testMethod());
}

[TestMethod]
public void Arith_arith057_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith057.testMethod());
Assert.IsTrue(Arith_TestClass_arith057.testMethod());
}

[TestMethod]
public void Arith_arith058_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith058.testMethod());
Assert.IsTrue(Arith_TestClass_arith058.testMethod());
}

[TestMethod]
public void Arith_arith059_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith059.testMethod());
Assert.IsTrue(Arith_TestClass_arith059.testMethod());
}

[TestMethod]
public void Arith_arith060_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith060.testMethod());
Assert.IsTrue(Arith_TestClass_arith060.testMethod());
}

[TestMethod]
public void Arith_arith061_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith061.testMethod());
Assert.IsTrue(Arith_TestClass_arith061.testMethod());
}

[TestMethod]
public void Arith_arith062_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith062.testMethod());
Assert.IsTrue(Arith_TestClass_arith062.testMethod());
}

[TestMethod]
public void Arith_arith064_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith064.testMethod());
Assert.IsTrue(Arith_TestClass_arith064.testMethod());
}

[TestMethod]
public void Arith_arith065_Test()
{
OutputHelper.WriteLine("Section 7.7");
Assert.True(Arith_TestClass_arith065.testMethod());
Assert.IsTrue(Arith_TestClass_arith065.testMethod());
}

//Compiled Test Cases
Expand Down
Loading

0 comments on commit 47525b0

Please sign in to comment.