diff options
Diffstat (limited to 'tests/src/CoreMangLib/cti/system/typecode/typecodeuint64.cs')
-rw-r--r-- | tests/src/CoreMangLib/cti/system/typecode/typecodeuint64.cs | 99 |
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; + } + } +} |