示例#1
0
        public void TestKøretøjBil()
        {
            Bil b1     = new Bil();
            var result = b1.KøretøjType();

            Assert.AreEqual("Bil", result);
        }
示例#2
0
        public void BilKøretøjTest()
        {
            //Arrange
            Bil bil = new Bil();
            //Act
            string køretøj = "Øresund Bil";

            //Assert
            Assert.AreEqual(bil.KøretøjType(), køretøj);
        }
示例#3
0
        public void KøretøjTest()
        {
            // Arrange
            var køretøj = new Bil("234", true, new DateTime(2017, 08, 29), true, true);

            // Act
            string køretøjslags = køretøj.KøretøjType();

            // Assert
            Assert.AreEqual("Bil", køretøjslags);
        }
        public void TestForKøretøj()
        {
            // arrage
            Bil Toyota = new Bil();

            // act
            string køretøj = Toyota.KøretøjType();

            // assert

            Assert.AreEqual("Bil", køretøj);
        }