Tests.TestFixture2.TestOutgoingWeight C# (CSharp) Method

TestOutgoingWeight() private method

private TestOutgoingWeight ( ) : void
return void
        public void TestOutgoingWeight()
        {
            var m = new Marking(2, new Dictionary<int, int> { { 0, 1 }, { 1, 0 } });
            var p = new GraphPetriNet(
                "p",
                new Dictionary<int, string> {
                    {0, "p0"},
                    {1, "p1"}
                },
                new Dictionary<int, string> { { 0, "t0" } },
                new Dictionary<int, List<InArc>>(){
                    {0, new List<InArc>(){new InArc(0)}}
                },
                new Dictionary<int, List<OutArc>>(){
                    {0, new List<OutArc>(){new OutArc(1){Weight=5}}}
                }
              );
            AssertMarkings(m, new Dictionary<int, int>{
                { 0, 1 },
                { 1, 0 }});
            m = p.Fire(m);
            AssertMarkings(m, new Dictionary<int, int>{
                { 0, 0 },
                { 1, 5 }});
        }