using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using ClassLibrary1; namespace UnitTestProject1 { [TestClass] public class UnitTest1 { [TestMethod] public void REzultRaven_6_PriVhodnih_2_6() { Class1 class1 = new Class1(); double rez = class1.fun1(2,6); Assert.AreEqual(rez, 6); } [TestMethod] public void REzultRaven_6_PriVhodnih_2_5() { Class1 class1 = new Class1(); double rez = class1.fun2(2, 5); Assert.AreEqual(rez, 1); } [TestMethod] public void REzultIsNotNull() { Class1 class1 = new Class1(); double rez = class1.fun2(2, 5); Assert.IsNotNull(rez); } } }