예제 #1
0
        public void CreateLocomotiveTest(string name, decimal weightInTons, decimal horsePower)
        {
            testLocomotive = new Locomotive(name, weightInTons, horsePower);

            Assert.IsNotNull(testLocomotive);
            Assert.IsTrue(testLocomotive.GetType() == typeof(Locomotive));
            Assert.Greater(testLocomotive.weightInTons, 0);
            Assert.Greater(testLocomotive.HorsePower, 0);
        }