Permalink
Browse files

- Updated xUnit Tests

  • Loading branch information...
tgiphil committed Nov 8, 2017
1 parent f938ecf commit 648fee0ac0f4a213b3cd184aa1f0baa82ced4eb7
@@ -40,7 +40,7 @@ public void DivCC(char a, char b)
}
//[Theory]
public void DivCCDivideByZeroException(char a)
private void DivCCDivideByZeroException(char a)
{
Assert.Equal(CharTests.DivCC(a, (char)0), Run<int>("Mosa.UnitTest.Collection.CharTests.DivCC", a, (char)0));
}
@@ -58,7 +58,7 @@ public void RemCC(char a, char b)
}
//[Theory]
public void RemCCDivideByZeroException(char a, char b)
private void RemCCDivideByZeroException(char a, char b)
{
Assert.Equal(CharTests.RemCC(a, (char)0), Run<int>("Mosa.UnitTest.Collection.CharTests.RemCC", a, (char)0));
}
@@ -50,7 +50,7 @@ public void DivR8R8(double a, double b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void DivR8R8DivideByZeroException(double a)
private void DivR8R8DivideByZeroException(double a)
{
Run<double>("Mosa.UnitTest.Collection.DoubleTests.DivR8R8", (double)0, a, (double)0);
}
@@ -75,7 +75,7 @@ public void RemR8R8(double a, double b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void RemI4I4DivideByZeroException(int a)
private void RemI4I4DivideByZeroException(int a)
{
Run<double>("Mosa.UnitTest.Collection.DoubleTests.RemR8R8", (double)0, a, (double)0);
}
@@ -41,7 +41,7 @@ public void DivI2I2(short a, short b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void DivI2I2DivideByZeroException(short a)
private void DivI2I2DivideByZeroException(short a)
{
Assert.Equal(Int16Tests.DivI2I2(a, 0), Run<int>("Mosa.UnitTest.Collection.Int16Tests.DivI2I2", a, (short)0));
}
@@ -60,7 +60,7 @@ public void RemI2I2(short a, short b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void RemI2I2DivideByZeroException(short a)
private void RemI2I2DivideByZeroException(short a)
{
Assert.Equal(Int16Tests.RemI2I2(a, 0), Run<int>("Mosa.UnitTest.Collection.Int16Tests.RemI2I2", a, (short)0));
}
@@ -47,7 +47,7 @@ public void DivI4I4(int a, int b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void DivI4I4DivideByZeroException(int a)
private void DivI4I4DivideByZeroException(int a)
{
Assert.Equal(Int32Tests.DivI4I4(a, 0), Run<int>("Mosa.UnitTest.Collection.Int32Tests.DivI4I4", a, 0));
}
@@ -72,7 +72,7 @@ public void RemI4I4(int a, int b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void RemI4I4DivideByZeroException(int a)
private void RemI4I4DivideByZeroException(int a)
{
Assert.Equal(Int32Tests.RemI4I4(a, 0), Run<int>("Mosa.UnitTest.Collection.Int32Tests.RemI4I4", a, 0));
}
@@ -49,7 +49,7 @@ public void DivI8I8(long a, long b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void DivI8I8DivideByZeroException(long a)
private void DivI8I8DivideByZeroException(long a)
{
Assert.Equal(Int64Tests.DivI8I8(a, 0), Run<long>("Mosa.UnitTest.Collection.Int64Tests.DivI8I8", a, (long)0));
}
@@ -75,7 +75,7 @@ public void RemI8I8(long a, long b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void RemI8I8DivideByZeroException(long a)
private void RemI8I8DivideByZeroException(long a)
{
Assert.Equal(Int64Tests.RemI8I8(a, 0), Run<long>("Mosa.UnitTest.Collection.Int64Tests.RemI8I8", a, (long)0));
}
@@ -41,7 +41,7 @@ public void DivI1I1(sbyte a, sbyte b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void DivI1I1DivideByZeroException(sbyte a)
private void DivI1I1DivideByZeroException(sbyte a)
{
Assert.Equal(Int8Tests.DivI1I1(a, 0), Run<int>("Mosa.UnitTest.Collection.Int8Tests.DivI1I1", a, (sbyte)0));
}
@@ -50,15 +50,15 @@ public void DivR4R4(float a, float b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void DivR4R4DivideByZeroException(float a)
private void DivR4R4DivideByZeroException(float a)
{
Run<float>("Mosa.UnitTest.Collection.SingleTests.DivR4R4", (float)0, a, (float)0);
}
// TinySimulator can't simulate this.
//[Theory]
//[MemberData(nameof(R4R4), DisableDiscoveryEnumeration = true)]
public void RemR4R4(float a, float b)
private void RemR4R4(float a, float b)
{
if (a == int.MinValue && b == -1)
{
@@ -76,7 +76,7 @@ public void RemR4R4(float a, float b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void RemI4I4DivideByZeroException(int a)
private void RemI4I4DivideByZeroException(int a)
{
Run<float>("Mosa.UnitTest.Collection.SingleTests.RemR4R4", (float)0, a, (float)0);
}
@@ -159,7 +159,7 @@ public void LdelemaR4(int index, float value)
//[Theory]
//[MemberData(nameof(R4), DisableDiscoveryEnumeration = true)]
public void IsNaN(float value)
private void IsNaN(float value)
{
Assert.Equal(SingleTests.IsNaN(value), Run<bool>("Mosa.UnitTest.Collection.SingleTests.IsNaN", value));
}
@@ -41,7 +41,7 @@ public void DivU2U2(ushort a, ushort b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void DivU2U2DivideByZeroException(ushort a)
private void DivU2U2DivideByZeroException(ushort a)
{
Assert.Equal(UInt16Tests.DivU2U2(a, 0), Run<int>("Mosa.UnitTest.Collection.UInt16Tests.DivU2U2", a, (ushort)0));
}
@@ -60,7 +60,7 @@ public void RemU2U2(ushort a, ushort b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void RemU2U2DivideByZeroException(ushort a)
private void RemU2U2DivideByZeroException(ushort a)
{
Assert.Equal(UInt16Tests.RemU2U2(a, 0), Run<int>("Mosa.UnitTest.Collection.UInt16Tests.RemU2U2", a, (ushort)0));
}
@@ -41,7 +41,7 @@ public void DivU4U4(uint a, uint b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void DivU4U4DivideByZeroException(uint a)
private void DivU4U4DivideByZeroException(uint a)
{
Assert.Equal(UInt32Tests.DivU4U4(a, 0), Run<uint>("Mosa.UnitTest.Collection.UInt32Tests.DivU4U4", a, (uint)0));
}
@@ -60,7 +60,7 @@ public void RemU4U4(uint a, uint b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void RemU4U4DivideByZeroException(uint a)
private void RemU4U4DivideByZeroException(uint a)
{
Assert.Equal(UInt32Tests.RemU4U4(a, 0), Run<uint>("Mosa.UnitTest.Collection.UInt32Tests.RemU4U4", a, (uint)0));
}
@@ -41,7 +41,7 @@ public void DivU8U8(ulong a, ulong b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void DivU8U8DivideByZeroException(ulong a)
private void DivU8U8DivideByZeroException(ulong a)
{
Assert.Equal(UInt64Tests.DivU8U8(a, 0), Run<ulong>("Mosa.UnitTest.Collection.UInt64Tests.DivU8U8", a, (ulong)0));
}
@@ -60,7 +60,7 @@ public void RemU8U8(ulong a, ulong b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void RemU8U8DivideByZeroException(ulong a)
private void RemU8U8DivideByZeroException(ulong a)
{
Assert.Equal(UInt64Tests.RemU8U8(a, 0), Run<ulong>("Mosa.UnitTest.Collection.UInt64Tests.RemU8U8", a, (ulong)0));
}
@@ -41,7 +41,7 @@ public void DivU1U1(byte a, byte b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void DivU1U1DivideByZeroException(byte a)
private void DivU1U1DivideByZeroException(byte a)
{
Assert.Equal(UInt8Tests.DivU1U1(a, 0), Run<int>("Mosa.UnitTest.Collection.UInt8Tests.DivU1U1", a, (byte)0));
}
@@ -60,7 +60,7 @@ public void RemU1U1(byte a, byte b)
//[Theory]
//[ExpectedException(typeof(DivideByZeroException))]
public void RemU1U1DivideByZeroException(byte a)
private void RemU1U1DivideByZeroException(byte a)
{
Assert.Equal(UInt8Tests.RemU1U1(a, 0), Run<int>("Mosa.UnitTest.Collection.UInt8Tests.RemU1U1", a, (byte)0));
}

0 comments on commit 648fee0

Please sign in to comment.