public void GetMessage()
        {
            var writerMock = MockRepository.GenerateMock <TextMessageWriter>();

            writerMock.Expect(mock => mock.Write("Expected: ExpectedName	 but was: First, Second"));
            writerMock.Replay();

            var constraint = new EnumValueInfoListContentsConstraint("ExpectedName");

            PrivateInvoke.SetNonPublicField(constraint, "actual", _list);
            constraint.WriteMessageTo(writerMock);

            writerMock.VerifyAllExpectations();
        }
        public static void Contains(string expectedName, IList <EnumValueInfo> list, string message, params object[] args)
        {
            var constraint = new EnumValueInfoListContentsConstraint(expectedName);

            Assert.That(list, constraint);
        }
        public void AssertWithListEmpty()
        {
            var constraint = new EnumValueInfoListContentsConstraint("First");

            Assert.That(constraint.Matches(new List <EnumValueInfo> ()), Is.False);
        }
        public void AssertWithInvalidValue()
        {
            var constraint = new EnumValueInfoListContentsConstraint("Other");

            Assert.That(constraint.Matches(_list), Is.False);
        }
        public void AssertWithValidValue()
        {
            var constraint = new EnumValueInfoListContentsConstraint("First");

            Assert.That(_list, constraint);
        }