GetWarningCount() публичный Метод

Gets the number of field and business rule warnings inside this context.
public GetWarningCount ( ) : int
Результат int
            public void ReturnsZeroForContextWithoutErrors()
            {
                var context = new ValidationContext();

                Assert.AreEqual(0, context.GetWarningCount());
            }