public void ToStringTest() { DependsOn.Windows(() => { string formatted1 = PathStringPool.Get(Path).ToString(PathStringFormatterTests.Format); Assert.AreEqual(Resources.PathStringToStringResult, formatted1); string formatted2 = PathStringPool.Get(Path).ToString(""); Assert.AreEqual(Path, formatted2); }); }
public void FormatTest() { DependsOn.Windows(() => { var path = PathStringPool.Get(PathStringTests.Path); var formatter = new PathStringFormatter(); string formatted = formatter.Format(Format, path, null); Assert.AreEqual(Resources.PathStringToStringResult, formatted); }); }