Skip to content

Commit

Permalink
Fügt die Datei mit dem eigentlichen Unittest hinzu. Diese fehlte im C…
Browse files Browse the repository at this point in the history
…ommit #a3afad23
  • Loading branch information
suchja committed Feb 23, 2016
1 parent b5f8a22 commit 12143c6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions TaschenrechnerTests/RechnerModelTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Taschenrechner;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Taschenrechner.Tests
{
[TestClass()]
public class RechnerModelTests
{
[TestMethod()]
public void Berechne_DivisionDurchNull_ErgibtUnendlich()
{
RechnerModel model = new RechnerModel();

model.Operation = "/";
model.ErsteZahl = 10;
model.ZweiteZahl = 0;

model.Berechne();

Assert.AreEqual(Double.PositiveInfinity, model.Resultat);
}
}
}

1 comment on commit 12143c6

@suchja
Copy link
Member Author

@suchja suchja commented on 12143c6 Jul 5, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Die weiteren Dateien die für das Projekt TaschenrechnerTests benötigt werden, findest du in diesem Commit.

Please sign in to comment.