public void Derived_Create0() { var value = GenerationsDerived.Create("first", "last", "position"); Assert.Equal(0, value.Age); Assert.Equal("first", value.FirstName); Assert.Equal("last", value.LastName); Assert.Null(value.Title); Assert.Equal("position", value.Position); }
public void Derived_With2() { var value = GenerationsDerived.Create() .With2(5, "first", "last", "title", "position"); Assert.Equal(5, value.Age); Assert.Equal("first", value.FirstName); Assert.Equal("last", value.LastName); Assert.Equal("title", value.Title); Assert.Equal("position", value.Position); }