42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
using TestingLib;
|
|
|
|
namespace TestRunner
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for MainWindow.xaml
|
|
/// </summary>
|
|
public partial class MainWindow : Window
|
|
{
|
|
private ObservableCollection<TestingLib.UnitTestInfo> _results = new ObservableCollection<UnitTestInfo>();
|
|
public MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
this.DataContext = _results;
|
|
}
|
|
|
|
private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
|
|
{
|
|
var testClass = new TestingLib.TestThePaymentDate();
|
|
_results.Add( testClass.DateIs30DaysInFuture());
|
|
_results.Add(testClass.ReturnsMondayIfProposedIsSaturday());
|
|
_results.Add(testClass.ReturnsMondayIfProposedIsSunday());
|
|
|
|
}
|
|
}
|
|
}
|