Esempio n. 1
0
        public void DoorUnLocked_StringAtPathContainsCorrectMessageAndID()
        {
            _uut.DoorUnlocked("1234");
            allTextLogEntries = System.IO.File.ReadAllLines(_fileName);
            string latestEntry = allTextLogEntries[allTextLogEntries.Length - 1];

            inputFields = latestEntry.Split(':');
            // string date = inputFields[0];
            string messageLogged = inputFields[3];
            string IDLogged      = inputFields[4];

            Assert.That(messageLogged, Is.EqualTo("Skab låst op med id"));
            Assert.That(IDLogged, Is.EqualTo("1234"));
        }