Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(dataProvider = "factory") public void test_toString(Object first, Object second)
        public virtual void test_toString(object first, object second)
        {
            Pair <object, object> test = Pair.of(first, second);
            string str = "[" + first + ", " + second + "]";

            assertEquals(test.ToString(), str);
        }
Exemplo n.º 2
0
        public virtual void test_toString()
        {
            Pair <string, string> test = Pair.of("A", "B");

            assertEquals("[A, B]", test.ToString());
        }