Пример #1
0
        public void Summary_Invoke_ReturnsUniqueListRequestField()
        {
            var listRequestField = new ListRequestField("FieldName");

            Assert.NotSame(listRequestField, listRequestField.Summary(true));
        }
Пример #2
0
        public void Summary_AlreadyHasSummary_ThrowsInvalidOperationException()
        {
            var listRequestField = new ListRequestField("FieldName").Summary(true);

            Assert.Throws <InvalidOperationException>(() => listRequestField.Summary(false));
        }