Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
clown committed Apr 7, 2020
1 parent 0fec05f commit d81d920
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Applications/Converter/Tests/Sources/OtherViewModelTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ class OtherViewModelTest : ViewModelFixture
public void MainViewModel() => Invoke(vm =>
{
Assert.That(vm.Title, Does.StartWith(nameof(MainViewModel)));
Assert.That(vm.Title, Does.Contain("CubePDF 1.0.1"));
Assert.That(vm.Version, Does.StartWith("1.0.1 (").And.EndsWith(")"));
Assert.That(vm.Title, Does.Contain("CubePDF 1.0.2"));
Assert.That(vm.Version, Does.StartWith("1.0.2 (").And.EndsWith(")"));
Assert.That(vm.Uri, Is.EqualTo(new Uri("https://www.cube-soft.jp/cubepdf/")));
});

Expand Down
2 changes: 1 addition & 1 deletion Applications/Converter/Tests/Sources/SettingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void Create()
Assert.That(dest.Assembly.GetProduct(), Is.EqualTo("Cube.Pdf.Converter.Tests"));
Assert.That(dest.DocumentName.Source, Is.Empty);
Assert.That(dest.DocumentName.Value, Is.EqualTo("Cube.Pdf.Converter.Tests"));
Assert.That(dest.Version.ToString(), Is.EqualTo("1.0.1"));
Assert.That(dest.Version.ToString(), Is.EqualTo("1.0.2"));
Assert.That(dest.Value, Is.Not.Null);
Assert.That(dest.Digest, Is.Null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void Cancel() => Open("Sample.pdf", "", vm =>
{
Assert.That(e.Title, Is.Not.Null.And.Not.Empty);
Assert.That(e.Version.Text, Is.Not.Null.And.Not.Empty);
Assert.That(e.Version.Value, Does.StartWith("Cube.Pdf.Editor.Tests 0.5. "));
Assert.That(e.Version.Value, Does.StartWith("Cube.Pdf.Editor.Tests 0.5. "));
Assert.That(e.Windows.Text, Does.StartWith("Microsoft Windows"));
Assert.That(e.Framework.Text, Does.StartWith("Microsoft .NET Framework"));
Assert.That(e.Link.Text, Is.EqualTo("Copyright © 2010 CubeSoft, Inc."));
Expand Down

0 comments on commit d81d920

Please sign in to comment.