Example #1
0
        public void Should_be_able_to_account_for_delta_time()
        {
            var recipe  = GetComplexRecipe();
            var results = GetComplexOutputWithDelta();
            var conv    = new USI_ResourceConverter(new FakeResourceBroker());
            var actual  = conv.ProcessRecipe(0.5, recipe, null);
            var result  = comp.Compare(results, actual);

            Assert.IsTrue(result.AreEqual);
        }
Example #2
0
        public void Should_be_able_to_perform_a_complex_multi_resource_conversion()
        {
            var recipe  = GetComplexRecipe();
            var results = GetComplexOutput();
            var conv    = new USI_ResourceConverter(new FakeResourceBroker());
            //We'll start with a delta time of 1 second - the default.
            var actual = conv.ProcessRecipe(1, recipe, null);
            var result = comp.Compare(results, actual);

            Assert.IsTrue(result.AreEqual);
        }