コード例 #1
0
        public void TestAssertDimension()
        {
            var distance = new Quantity(10, Length.dimension);
            var typed    = distance.Assert <Length>();

            Assert.IsType <Quantity <Length> >(typed);
            Assert.Equal(Length.dimension, typed.Dimension);
        }