Ejemplo n.º 1
0
        public void UpdateFrom_ValueIsIgnoreValue_NoUpdate()
        {
            SensoryFeature subject = new SensoryFeature(1, 1.0);
            var            other   = new SensoryFeature(SensoryFeature.IGNORE_UPDATE, 0);

            subject.UpdateFrom(other);

            Assert.Equal(1, subject.Value);
            Assert.Equal(1.0, subject.Strength);
        }
Ejemplo n.º 2
0
        public void UpdateFrom_ValidValue_Updated()
        {
            SensoryFeature subject = new SensoryFeature(1, 1.0);
            var            other   = new SensoryFeature(0, 0.5);

            subject.UpdateFrom(other);

            Assert.Equal(0, subject.Value);
            Assert.Equal(0.5, subject.Strength);
        }