예제 #1
0
        public void Scatter_DuplicateResponses()
        {
            var target = new Scatter <int>();
            var id     = Guid.NewGuid();

            target.AddParticipant(id);
            target.AddResponse(id, ScatterResponse <int> .Success(id, "A", 5));
            target.AddResponse(id, ScatterResponse <int> .Success(id, "A", 6));
            var response = target.GatherResponses();

            response.Count.Should().Be(1);
            response[0].Value.Should().Be(5);
        }