summaryrefslogtreecommitdiff
path: root/tests/src/CoreMangLib/cti/system/typecode/typecodeuint64.cs
diff options
context:
space:
mode:
authordotnet-bot <dotnet-bot@microsoft.com>2015-09-30 12:20:52 -0700
committerBryan Arant <bryanar@microsoft.com>2015-10-18 23:09:47 -0700
commit004514c07bcf5230b518befd75f794733b5f9067 (patch)
treef05d9d5692627acac1d043915eb5b20a74f403ec /tests/src/CoreMangLib/cti/system/typecode/typecodeuint64.cs
parentddff89241f682995bdde165de89b579573a338aa (diff)
downloadcoreclr-004514c07bcf5230b518befd75f794733b5f9067.tar.gz
coreclr-004514c07bcf5230b518befd75f794733b5f9067.tar.bz2
coreclr-004514c07bcf5230b518befd75f794733b5f9067.zip
Managed Test Port
This is a collection of managed runtime tests from an internal legacy test tree.
Diffstat (limited to 'tests/src/CoreMangLib/cti/system/typecode/typecodeuint64.cs')
-rw-r--r--tests/src/CoreMangLib/cti/system/typecode/typecodeuint64.cs99
1 files changed, 99 insertions, 0 deletions
diff --git a/tests/src/CoreMangLib/cti/system/typecode/typecodeuint64.cs b/tests/src/CoreMangLib/cti/system/typecode/typecodeuint64.cs
new file mode 100644
index 0000000000..6816617e3c
--- /dev/null
+++ b/tests/src/CoreMangLib/cti/system/typecode/typecodeuint64.cs
@@ -0,0 +1,99 @@
+using System;
+
+/// <summary>
+/// UInt64
+/// </summary>
+
+public class TypeCodeUInt64
+{
+ #region Public Methods
+ public bool RunTests()
+ {
+ bool retVal = true;
+
+ TestLibrary.TestFramework.LogInformation("[Positive]");
+ retVal = PosTest1() && retVal;
+
+ //
+ // TODO: Add your negative test cases here
+ //
+ // TestLibrary.TestFramework.LogInformation("[Negative]");
+ // retVal = NegTest1() && retVal;
+
+ return retVal;
+ }
+
+ #region Positive Test Cases
+ public bool PosTest1()
+ {
+ bool retVal = true;
+
+ // Add your scenario description here
+ TestLibrary.TestFramework.BeginScenario("PosTest1: Verify TypeCode.UInt64 .");
+
+ try
+ {
+ int i = (int)TypeCode.UInt64;
+
+ if (i != 12)
+ {
+ TestLibrary.TestFramework.LogError("001.1", "TypeCode.UInt64 Err.");
+ retVal = false;
+ }
+ }
+ catch (Exception e)
+ {
+ TestLibrary.TestFramework.LogError("001.2", "Unexpected exception: " + e);
+ TestLibrary.TestFramework.LogInformation(e.StackTrace);
+ retVal = false;
+ }
+
+ return retVal;
+ }
+ #endregion
+
+ #region Nagetive Test Cases
+ //public bool NegTest1()
+ //{
+ // bool retVal = true;
+
+ // TestLibrary.TestFramework.BeginScenario("NegTest1: ");
+
+ // try
+ // {
+ // //
+ // // Add your test logic here
+ // //
+ // }
+ // catch (Exception e)
+ // {
+ // TestLibrary.TestFramework.LogError("101", "Unexpected exception: " + e);
+ // TestLibrary.TestFramework.LogInformation(e.StackTrace);
+ // retVal = false;
+ // }
+
+ // return retVal;
+ //}
+ #endregion
+ #endregion
+
+ public static int Main()
+ {
+ TypeCodeUInt64 test = new TypeCodeUInt64();
+
+ TestLibrary.TestFramework.BeginTestCase("TypeCodeUInt64");
+
+ if (test.RunTests())
+ {
+ TestLibrary.TestFramework.EndTestCase();
+ TestLibrary.TestFramework.LogInformation("PASS");
+ return 100;
+ }
+ else
+ {
+ TestLibrary.TestFramework.EndTestCase();
+ TestLibrary.TestFramework.LogInformation("FAIL");
+ return 0;
+ }
+ }
+}