Beispiel #1
0
        public void DateTimeTicksTest()
        {
            var dt    = new DateTimeConstant(new System.DateTime(2017, 10, 18, 11, 18, 5));
            var ticks = new DateTimeTicks(dt);

            Assert.AreEqual(636439222850000000, ticks.Value);
        }
Beispiel #2
0
    public static int Main(string[] args)
    {
        DateTimeTicks ticks = new DateTimeTicks();
        TestLibrary.TestFramework.BeginTestCase("Testing System.DateTime.Ticks property...");

        if (ticks.RunTests())
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("PASS");
            return 100;
        }
        else
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("FAIL");
            return 0;
        }
    }
Beispiel #3
0
    public static int Main(string[] args)
    {
        DateTimeTicks ticks = new DateTimeTicks();

        TestLibrary.TestFramework.BeginTestCase("Testing System.DateTime.Ticks property...");

        if (ticks.RunTests())
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("PASS");
            return(100);
        }
        else
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("FAIL");
            return(0);
        }
    }