public void KøretøjTest()
        {
            var    bil    = new Bil();
            string result = bil.Køretøj();

            Assert.AreEqual(result, "Bil");
        }
示例#2
0
        public void BilKøretøjTest()
        {
            Bil bil = new Bil("45", new DateTime(1990, 3, 12), false);

            string result = bil.Køretøj();

            Assert.AreEqual("Bil", result);
        }
示例#3
0
        public void BilKøretøjTest()
        {
            Bil bil = new Bil();

            string result = bil.Køretøj();

            Assert.AreEqual("Bil", result);
        }
示例#4
0
        public void BilKøretøjMetodeTest()
        {
            var bil = new Bil();

            string køretøj = bil.Køretøj();

            Assert.AreEqual("Bil", køretøj);
        }
示例#5
0
        public void BilKøretøj()
        {
            //Arange
            var bil = new Bil();
            //Act
            string køretøj = bil.Køretøj();

            //Assert
            Assert.AreEqual("Bil", køretøj);
        }
示例#6
0
        public void TestMethodKøretøj()
        {
            Bil b             = new Bil();
            var actuallResult = b.Køretøj();

            const string expectedResult = "Bil";

            Assert.AreEqual(expectedResult, actuallResult,
                            "Test failed! The actual result is not the same as the expected result");
        }
示例#7
0
        public void TestKøretøj()
        {
            //Arrange
            Bil b = new Bil();       // opretter objekttet bil
            //Act
            string kT = b.Køretøj(); // metoden string

            //Assert
            Assert.AreEqual("Bil", kT); //stringen skal give det forventet resultat "Bil" af metoden kT
        }
示例#8
0
        public void KøretøjBilTest()
        {
            //Arrange
            Bil bil = new Bil();
            //Act
            string køretøj = bil.Køretøj();

            //Assert
            Assert.AreEqual("bil", køretøj);
        }
示例#9
0
        public void Køretøj()
        {
            //Arrange
            var bil = new Bil();

            //Act
            string køretøj = "Øresund Bil";

            //Assert
            Assert.AreSame(køretøj, bil.Køretøj());
        }
        public void TestBilKøretøj()
        {
            //ARRANGE
            Bil bil = new Bil();

            //ACT
            string køretøj = bil.Køretøj();

            //ASSERT
            Assert.AreEqual("Bil", køretøj);
        }
        public void BilKøretøj()
        {
            //Arrange
            var bil = new Bil();

            //Act


            //Assert
            Assert.AreEqual("Bil", bil.Køretøj());
        }
示例#12
0
        public void TestBilName()
        {
            // Arrange
            Bil bil = new Bil("1234", DateTime.Now);

            // Act
            string name = bil.Køretøj();

            // Assert
            Assert.AreEqual("Bil", name);
        }
        public void BilKøretøjtester()
        {
            // Arrange
            Bil biltest = new Bil();

            // Act

            var result = biltest.Køretøj();

            // Assert
            Assert.AreEqual("Bil", result);
        }
示例#14
0
        public void KøretøjForBilTest()
        {
            // Arrange
            Bil    b4             = new Bil("12345", new DateTime(2018, 2, 1), false, false);
            string expectedResult = "Bil";

            // Act
            var actualResult = b4.Køretøj();

            //  Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
示例#15
0
 public void RigtigKøretøj()
 {
     Assert.AreEqual("Bil", _nyBil.Køretøj());
 }
示例#16
0
 public string GetBil()
 {
     return(bil2.Køretøj());
 }