Last active
August 29, 2015 14:26
-
-
Save mafis/f0556c24088908d259c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Klient | |
{ | |
public string Vorname { | |
get; | |
set; | |
} | |
public string Nachname { | |
get; | |
set; | |
} | |
public string Fullname { | |
get { | |
return Vorname + " " + Nachname; | |
} | |
} | |
} | |
[TestFixture] | |
public class KlientTest | |
{ | |
[Test] | |
public void Fullname() | |
{ | |
string expected = "Max Mustermann"; | |
Klient klient = new Klient () { | |
Vorname = "Max", | |
Nachname = "Mustermann" | |
}; | |
Assert.AreEqual (expected,klient.Fullname); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment