public void VersionStorage_NotDefaultWhenPresent() { b.Info.Flow(); VersionStorage vs = new MockVersionStorage("0.0.0.0"); var ver = vs.GetVersion(); Assert.False(ver.IsDefault); Assert.Equal(4, ver.Digits.Length); Assert.Equal("0.0.0.0", ver.ToString()); }
public void VersionStorage_CreatesDefaultIfNotPresent() { b.Info.Flow(); VersionStorage vs = new MockVersionStorage("default"); var ver = vs.GetVersion(); Assert.True(ver.IsDefault); Assert.Equal(4, ver.Digits.Length); Assert.Equal("0.0.0.0", ver.ToString()); }