Why Should the following Test Pass | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why Should the following Test Pass

using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TestNinja.Tests { [TestFixture] public class Class1 { [Test] public void TestMethod() { int a = 4; int b = 3; float result = 7.0000001f; //Assert.That((a + b), Is.EqualTo(result)); Assert.AreEqual((a + b), result); } } }

21st Nov 2019, 8:14 AM
Erick Muthomi Njoka
Erick Muthomi Njoka - avatar
0 Answers