Beispiel #1
0
        public void replace_a_default_handler_names_with_new_handler()
        {
            var       myClass  = new MyClass();
            const int intValue = 234;

            target.NameWith(() => GetRandom.Int(intValue, intValue));
            target.SetValuesOf(myClass);
            myClass.Int.ShouldBe(intValue);
        }
Beispiel #2
0
        public void replace_a_default_handler_names_with_new_handler()
        {
            var       myClass  = new MyClass();
            const int intValue = 234;

            target.NameWith(() => GetRandom.Int(intValue, intValue));
            target.SetValuesOf(myClass);
            Assert.That(myClass.Int, Is.EqualTo(intValue));
        }