public void Should_ThrowArgumentNullException_WhenAddNullParameter_AndCollectionIsEmpty() { var head = new Head(); Assert.Throws <ArgumentNullException>(() => head.Add(null)); Assert.IsFalse(head.Any()); }
public void Should_AddCorrectComponent_HeadIsNotEmpty() { var head = new Head(); Assert.DoesNotThrow(() => head.Add(new Component("asd", ComponentType.DRY, false))); Assert.IsTrue(head.Any()); }
public void Should_PumpingComponent_CheckHeadIsNotEmpty() { var head = new Head(); var pump = new Pump(head); pump.Pumping(new Component("asd", ComponentType.DRY, false)); Assert.IsTrue(head.Any()); }
public void Should_PumpingNullComponent_CheckHeadIsEmpty() { var head = new Head(); var pump = new Pump(head); Assert.Throws <ArgumentNullException>(() => pump.Pumping(null)); Assert.IsFalse(head.Any()); }
public bool ShouldSerializeHead() => Head.Any();
public void Should_CreateObject_AndComponentsIsEmpty() { var head = new Head(); Assert.IsFalse(head.Any()); }