예제 #1
0
        /// <summary>
        ///A test for GetThisUnitQuantity
        ///</summary>
        public void GetThisUnitQuantityTestHelper <T>()
        {
            Unit            target   = new Yard();       // TODO: Initialize to an appropriate value
            AnyQuantity <T> expected = new Length <T>(); // TODO: Initialize to an appropriate value

            AnyQuantity <T> actual;

            actual = target.GetThisUnitQuantity <T>();

            Assert.AreEqual(expected, actual);



            target = new Kelvin();

            expected = new Temperature <T>();

            actual = target.GetThisUnitQuantity <T>();

            Assert.AreEqual(expected, actual);
        }