public void Map_DefaultContentType_ThrowsException() { // arrange var target = new WeightCalculatorDomainService(); // act, assert Assert.Throws <InvalidOperationException>(() => target.CalculateMaxWeight(default));
public void Map_ContentType_ReturnsWeight(DomainOrigin domainOrigin, int expectedWeight) { // arrange var target = new WeightCalculatorDomainService(); // act var actual = target.CalculateMaxWeight(domainOrigin); // assert Assert.Equal(new Weight(expectedWeight), actual); }