Esempio n. 1
0
        public void getUniqueRow_Test()
        {
            Dictionary <Int32, Collection <Int32> > RowsAndCols = new Dictionary <int, Collection <int> >();

            //(1,1)
            Assert.AreEqual(CswNbtSdTabsAndProps.getUniqueRow(Int32.MinValue, Int32.MinValue, RowsAndCols), 1);
            //(2,1)
            Assert.AreEqual(CswNbtSdTabsAndProps.getUniqueRow(Int32.MinValue, Int32.MinValue, RowsAndCols), 2);
            //(3,1)
            Assert.AreEqual(CswNbtSdTabsAndProps.getUniqueRow(Int32.MinValue, Int32.MinValue, RowsAndCols), 3);
            //(4,1)
            Assert.AreEqual(CswNbtSdTabsAndProps.getUniqueRow(3, Int32.MinValue, RowsAndCols), 4);
            //(5,1)
            Assert.AreEqual(CswNbtSdTabsAndProps.getUniqueRow(Int32.MinValue, 1, RowsAndCols), 5);
            //(1,2)
            Assert.AreEqual(CswNbtSdTabsAndProps.getUniqueRow(Int32.MinValue, 2, RowsAndCols), 1);
            //(2,2)
            Assert.AreEqual(CswNbtSdTabsAndProps.getUniqueRow(Int32.MinValue, 2, RowsAndCols), 2);
        }