示例#1
0
        public void TwosFull()
        {
            var state    = new ChatState();
            var signing1 = new Signing("First", true);
            var signing2 = new Signing("Second", true);

            state = state.AddSigning(signing1).AddSigning(signing2);

            state.TwosFull().ShouldBe(true);
            state.ThreesFull().ShouldBe(false);
        }
示例#2
0
        public void ThreesFull()
        {
            var state = new ChatState();

            var signings = new[]
            {
                new Signing("First", false, true),
                new Signing("Second", false, true),
                new Signing("Third", false, true)
            };

            foreach (var signing in signings)
            {
                state = state.AddSigning(signing);
            }
            state.ThreesFull().ShouldBe(true);
            state.TwosFull().ShouldBe(false);
        }