Projektdateien hinzufügen.
This commit is contained in:
39
VideoBrowserTestApp/Tests/AboutViewTest.cs
Normal file
39
VideoBrowserTestApp/Tests/AboutViewTest.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
namespace VideoBrowserTestApp.Tests
|
||||
{
|
||||
using System.Windows;
|
||||
using VideoBrowser.ViewModels;
|
||||
using VideoBrowser.Views;
|
||||
using VideoBrowserTestApp.Helpers;
|
||||
|
||||
/// <summary>
|
||||
/// Defines the <see cref="AboutViewTest" />.
|
||||
/// </summary>
|
||||
public class AboutViewTest : TestBase
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AboutViewTest"/> class.
|
||||
/// </summary>
|
||||
public AboutViewTest() : base(nameof(AboutView))
|
||||
{
|
||||
}
|
||||
|
||||
#endregion Constructors
|
||||
|
||||
#region Methods
|
||||
|
||||
/// <summary>
|
||||
/// The Test.
|
||||
/// </summary>
|
||||
/// <param name="testWindow">The testWindow<see cref="Window"/>.</param>
|
||||
protected override void Test(Window testWindow)
|
||||
{
|
||||
var viewModel = new AboutViewModel();
|
||||
var view = new AboutView { DataContext = viewModel };
|
||||
WindowFactory.CreateAndShow(view, testWindow);
|
||||
}
|
||||
|
||||
#endregion Methods
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user