public void SettingCountSetsCountOnManyRelay() { // Fixture setup var sut = new DefaultRelays(); var expectedCount = 76; // Exercise system sut.Count = expectedCount; // Verify outcome var manyRelay = sut.OfType <MultipleRelay>().Single(); Assert.Equal(expectedCount, manyRelay.Count); // Teardown }
public void CountMatchesCountOnManyRelay() { // Fixture setup var sut = new DefaultRelays(); var expectedCount = 149; sut.OfType <MultipleRelay>().Single().Count = expectedCount; // Exercise system var result = sut.Count; // Verify outcome Assert.Equal(expectedCount, result); // Teardown }