예제 #1
0
        public void SqlTable_WhenGraphTypeIsNull_ThrowsException()
        {
            Action action = () => GraphTypeExtensions.SqlTable(null, "product", "id");

            action.Should().Throw <ArgumentNullException>()
            .Which.ParamName.Should().Be("graphType");
        }
예제 #2
0
        public void GetSqlTableConfig_WhenGraphTypeIsNull_ThrowsException()
        {
            Action action = () => GraphTypeExtensions.GetSqlTableConfig(null);

            action.Should()
            .Throw <ArgumentNullException>()
            .Which.ParamName.Should()
            .Be("graphType");
        }
예제 #3
0
        public void IsListType_Null_ThrowsArgumentNullException()
        {
            Action action = () => GraphTypeExtensions.IsListType(null);

            action.Should().Throw <ArgumentNullException>();
        }