コード例 #1
0
        public void T49Test()
        {
            T49 t49Test = new T49();

            Assert.AreEqual("Brown", t49Test.Color);
            Assert.AreEqual("the USA", t49Test.CountryOfManufacture);
            Assert.AreEqual(65, t49Test.MaxSpeed);
            Assert.AreEqual(1300, t49Test.Armor);
            Assert.AreEqual(4, t49Test.CabinCrew);
        }
コード例 #2
0
ファイル: nullenum1000.cs プロジェクト: l1183479157/coreclr
 static bool Do49(T49 t) {
   Nullable<T49> n = new Nullable<T49>(t);
   return Ensure(n.HasValue && n.Value == t);
 }