예제 #1
0
        public void CopiedInputEventHandlerTest()
        {
            //given
            Assert.AreEqual("out", AnotherFakeExternalSource.Connections.First(c => c.Name == "knopje").CurrentState.Name);

            //when
            AnotherFakeExternalSource.FireInputEvent("knopje", "in");
            AnotherFakeExternalSource.FireInputEvent("knopje", "out");

            //then
            Assert.That("out" == FakeExternalSource.Connections.First(c => c.Name == "knopje").CurrentState.Name, Is.True.After(100));
        }
예제 #2
0
 public void Init()
 {
     FakeExternalSource        = new FakeExternalSource();
     AnotherFakeExternalSource = new AnotherFakeExternalSource();
     Distributor = new Distributor(new IExternalSource[] { FakeExternalSource, AnotherFakeExternalSource }, new[] { new FakeRuleStore() });
 }