Exemplo n.º 1
0
        public void TestParseMasterFileData_Invalid()
        {
            string name;
            string firstname;
            double salary;

            Assert.IsFalse(TimeTableForm.TryParseMasterFileData("Vorname: Hans\nNachname: Muster\nStundenlohn: dd", out name, out firstname, out salary));
        }
Exemplo n.º 2
0
        public void TestParseMasterFileData_Success()
        {
            string name;
            string firstname;
            double salary;

            Assert.IsTrue(TimeTableForm.TryParseMasterFileData("Vorname: Hans\nNachname: Muster\nStundenlohn: 32", out name, out firstname, out salary));
            Assert.AreEqual("Muster", name);
            Assert.AreEqual("Hans", firstname);
            Assert.AreEqual(32, salary);
        }