public void Test2() { ClassAttribute obj2 = new ClassAttribute(22); Console.WriteLine(obj2.getAttribute()); obj2.setAttribute(obj2); Console.WriteLine(obj2.getAttribute()); obj2.setAttribute(3.3); Console.WriteLine(obj2.getAttribute()); }
public void Test4() { ClassAttribute obj4 = new ClassAttribute(24); Console.WriteLine(obj4.getAttribute()); int n = obj4.getAttribute(); Console.WriteLine(n); obj4.setAttribute("Hello"); Console.WriteLine(obj4.getAttribute()); string s = obj4.getAttribute(); Console.WriteLine(s); obj4.setAttribute(true); Console.WriteLine(obj4.getAttribute()); bool b = obj4.getAttribute(); Console.WriteLine(b); obj4.setAttribute(7.9); Console.WriteLine(obj4.getAttribute()); double n2 = obj4.getAttribute(); Console.WriteLine(n2); obj4.setAttribute(obj4); Console.WriteLine(obj4.getAttribute()); object obj5 = obj4.getAttribute(); Console.WriteLine(obj5); obj4.setAttribute('P'); Console.WriteLine(obj4.getAttribute()); char character = obj4.getAttribute(); Console.WriteLine(character); }
public void Test3() { ClassAttribute obj3 = new ClassAttribute(22); Console.WriteLine(obj3.getAttribute()); obj3.setAttribute(false); Console.WriteLine(obj3.getAttribute()); }
public void Test2() { var obj2 = new ClassAttribute(22); if (obj2.getAttribute() != 22) { Environment.Exit(-1); } obj2.setAttribute(new ClassAttribute(true)); if (!(obj2.getAttribute() is ClassAttribute)) { Environment.Exit(-1); } obj2.setAttribute(3.3); if (obj2.getAttribute() != 3.3) { Environment.Exit(-1); } }
public void Test3() { var obj3 = new ClassAttribute(22); if (obj3.getAttribute() != 22) { Environment.Exit(-1); } obj3.setAttribute(false); if (obj3.getAttribute() == true) { Environment.Exit(-1); } }
public void Test4() { var obj4 = new ClassAttribute(24); if (obj4.getAttribute() != 24) { Environment.Exit(-1); } var n = obj4.getAttribute(); if (n != 24) { Environment.Exit(-1); } obj4.setAttribute("Hello"); if (!(obj4.getAttribute().Equals("Hello"))) { Environment.Exit(-1); } var s = obj4.getAttribute(); if (!(s.Equals("Hello"))) { Environment.Exit(-1); } obj4.setAttribute(true); if (obj4.getAttribute() == false) { Environment.Exit(-1); } var b = obj4.getAttribute(); if (obj4.getAttribute() == false) { Environment.Exit(-1); } obj4.setAttribute(7.9); if (obj4.getAttribute() != 7.9) { Environment.Exit(-1); } var n2 = obj4.getAttribute(); if (n2 != 7.9) { Environment.Exit(-1); } obj4.setAttribute(new ClassAttribute(true)); if (!(obj4.getAttribute() is ClassAttribute)) { Environment.Exit(-1); } var obj5 = obj4.getAttribute(); if (!(obj5 is ClassAttribute)) { Environment.Exit(-1); } obj4.setAttribute('P'); if (obj4.getAttribute() != 'P') { Environment.Exit(-1); } var character = obj4.getAttribute(); if (character != 80) { Environment.Exit(-1); } }
public void Test4() { ClassAttribute obj4 = new ClassAttribute(24); if (obj4.getAttribute() != 24) { Environment.Exit(-1); } int n = obj4.getAttribute(); if (n != 24) { Environment.Exit(-1); } obj4.setAttribute("Hello"); if (!(obj4.getAttribute().Equals("Hello"))) { Environment.Exit(-1); } string s = obj4.getAttribute(); if (!(s.Equals("Hello"))) { Environment.Exit(-1); } obj4.setAttribute(true); if (obj4.getAttribute() == false) { Environment.Exit(-1); } bool b = obj4.getAttribute(); if (obj4.getAttribute() == false) { Environment.Exit(-1); } obj4.setAttribute(7.9); if (obj4.getAttribute() != 7.9) { Environment.Exit(-1); } double n2 = obj4.getAttribute(); if (n2 != 7.9) { Environment.Exit(-1); } obj4.setAttribute(obj4); if (!(obj4.getAttribute() is ClassAttribute)) { Environment.Exit(-1); } object obj5 = obj4.getAttribute(); if (!(obj5 is ClassAttribute)) { Environment.Exit(-1); } obj4.setAttribute('P'); if (obj4.getAttribute() != 'P') { Environment.Exit(-1); } char character = obj4.getAttribute(); if (character != 80) { Environment.Exit(-1); } var charac = obj4.getAttribute(); if (charac != 80) { Environment.Exit(-1); } }