Skip to content

Instantly share code, notes, and snippets.

@mafis
Last active August 29, 2015 14:26
Show Gist options
  • Save mafis/f0556c24088908d259c3 to your computer and use it in GitHub Desktop.
Save mafis/f0556c24088908d259c3 to your computer and use it in GitHub Desktop.
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