Forum Discussion

Berkay's avatar
Berkay
Occasional Contributor
6 years ago

how can i test the code that i write in visual studio with test complete ?

I wrote some codes in Visual studio and i want to unit test in test complete that codes. How can ı unit test in test complete ?

 

My_cod

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

 

 

 

namespace ClassLibrary2

{

    public class Islem

    {

        public Islem() { }

        public Islem(int sayi1,int sayi2)

        {

            this.Sayi1 = sayi1;

            this.Sayi2 = sayi2;

        }

 

        public int Sayi1 { get; set; }

        public int Sayi2 { get; set; }

        public int Carp ()

        {

            return this.Sayi1 * this.Sayi2;

        }

        public int Bol()

        {

            return this.Sayi1 / this.Sayi2;

        }

 

    }

}

 

for example ı want to test Bol or Carp what should ı do?

3 Replies