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

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

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

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