Exemplo n.º 1
0
 public void LeavesSportEmptyIfNullPassedIn()
 {
     _builder = CreateAMockBuilder().Object;
     _builder.WithSport(null);
     var person = _builder.Build();
     Assert.That(person.SportsPlayed.Count, Is.EqualTo(0));
 }
Exemplo n.º 2
0
 public void SkillLevelIsSetToDefaultIfNotSpecified()
 {
     _builder = CreateAMockBuilder().Object;
     _builder.WithSport(new Mock<Sport>().Object);
     _builder.WithSkillLevel(null);
     var profile = _builder.Build();
     Assert.AreEqual(profile.SportsPlayed[0].SkillLevel.Level, Constants.DefaultSkillLevel);
 }