コード例 #1
0
        public void GetValidator_ReturnsODataQueryOptionsValidator40_ForODataVersion40()
        {
            IODataQueryOptionsValidator validator = ODataQueryOptionsValidator.GetValidator(ODataVersion.OData40);

            Assert.NotNull(validator);
            Assert.IsType <ODataQueryOptionsValidator40>(validator);
        }
コード例 #2
0
 public void GetValidator_Throws_NotSupportedException_For_Unsupported_ODataVersion()
 {
     Assert.Throws <NotSupportedException>(() => ODataQueryOptionsValidator.GetValidator(ODataVersion.Parse("3.0")));
 }
コード例 #3
0
 public void GetValidator_Throws_ArgumentNullException_For_Null_ODataVersion()
 {
     Assert.Throws <ArgumentNullException>(() => ODataQueryOptionsValidator.GetValidator(null));
 }