GetFormat() public method

public GetFormat ( Type formatType ) : object
formatType Type
return object
 public void TestArgNumberFormatInfo()
 {
     NumberFormatInfo nfi = new NumberFormatInfo();
     Type formatType = typeof(NumberFormatInfo);
     object obj = nfi.GetFormat(formatType);
     bool testVerify = obj is NumberFormatInfo;
     Assert.True(testVerify);
 }
 public void TestArgNotNumberFormatInfo()
 {
     NumberFormatInfo nfi = new NumberFormatInfo();
     Type formatType = typeof(object);
     Assert.Null(nfi.GetFormat(formatType));
 }