Exemplo n.º 1
0
        public void WeCanChangeTheValueOfAPropertyOfAnObject()
        {
            SampleTester<float> test = new SampleTester<float>();
            FloatSampler sampler = new FloatSampler(test, "property", x);

            float oldValue = test.property;

            sampler.Sample(0.5f);

            Assert.That(test.property, Is.Not.EqualTo(oldValue));
        }
Exemplo n.º 2
0
        public void WeCanChangeTheValueOfAPropertyOfAnObject()
        {
            SampleTester <float> test    = new SampleTester <float>();
            FloatSampler         sampler = new FloatSampler(test, "property", x);

            float oldValue = test.property;

            sampler.Sample(0.5f);

            Assert.That(test.property, Is.Not.EqualTo(oldValue));
        }