public void TimestampIsRequiredForPost() { var p = new PostBuilder().Build().Post; p.Timestamp = default(DateTime); Assert.Throws<ValidationException>(() => p.Validate()); }
public void PostbuilderBuildsValidPost() { var p = new PostBuilder().Build().Post; p.Validate(); }
public void TitleIsRequiredForPost() { var p = new PostBuilder().Build().Post; p.Title = ""; Assert.Throws<ValidationException>(() => p.Validate()); }