public void ClassA_With_Name_IsMatched() { var x = new ClassA(); x.Name = "upendra"; var result = PatternMatching.Match(x); Assert.True(result == "ClassA.upendra"); }
public void Invalid_Argument_IsMatched() { Assert.Throws <ArgumentException>(() => PatternMatching.Match(100)); }
public void Null_IsMatched() { Assert.Throws <ArgumentNullException>(() => PatternMatching.Match(null)); }