コード例 #1
0
ファイル: RowTest.cs プロジェクト: endeavour/rhino-tools
        public void Should_not_take_casing_into_account_in_column_names()
        {
            Row first = new Row();
            first["A"] = 1;

            Row second = new Row();
            second["a"] = 1;

            Assert.IsTrue(first.Equals(second));
        }
コード例 #2
0
ファイル: RowTest.cs プロジェクト: endeavour/rhino-tools
        public void Incompatible_types_throw_invalid_operation_exception()
        {
            Row first = new Row();
            first["a"] = 1;

            Row second = new Row();
            second["a"] = "stringvalue";

            Assert.IsTrue(first.Equals(second));
        }
コード例 #3
0
ファイル: RowTest.cs プロジェクト: endeavour/rhino-tools
        public void Nulls_are_equal()
        {
            Row first = new Row();
            first["a"] = null;

            Row second = new Row();
            second["a"] = null;

            Assert.IsTrue(first.Equals(second));
        }
コード例 #4
0
ファイル: RowTest.cs プロジェクト: endeavour/rhino-tools
        public void Different_numeric_types_should_be_comparable_if_implicit_conversion_exists(object firstValue, object secondValue)
        {
            Row first = new Row();
            first["a"] = firstValue;

            Row second = new Row();
            second["a"] = secondValue;

            Assert.IsTrue(first.Equals(second));
        }