public void Reset_SetAllFeaturesToZero() { SensoryDisplay subject = CreateSensoryDisplay(); //Act subject.Reset(); //Assert foreach (var feature in subject.AsCollection()) { Assert.Equal(SensoryFeature.NO_VALUE, feature.Value); Assert.Equal(0, feature.Strength); } }
public void UpdateTo_AllFeaturesChange() { SensoryDisplay subject = CreateSensoryDisplay(); //Create a totally different display SensoryDisplay update = CreateSensoryDisplay(); //Act subject.UpdateFrom(update); //Assert var actual = subject.AsCollection(); var expected = update.AsCollection(); Assert.Equal(expected, actual); }