public void Format_ProviderIsCapacityFormatterValueIsUnsupported_ResultAsExpected() { CapacityFormatter instance = this.GetInstance(); DateTime value = new DateTime(2019, 5, 23, 17, 5, 23); Assert.That(instance.Format("yyyy-MM-dd HH:mm:ss", value, instance), Is.EqualTo("2019-05-23 17:05:23")); }
public void Format_ProviderIsCapacityFormatterValueIsSupported_ResultAsExpected(String format, Int32 value, String expected) { CapacityFormatter instance = this.GetInstance(); Assert.That(instance.Format(format, value, instance), Is.EqualTo(expected)); }
public void Format_NullValue_ResultIsEmpty() { CapacityFormatter instance = this.GetInstance(); Assert.That(instance.Format("format", null, instance), Is.Empty); }