Using System;
Using NUnit Framework;   

 [TestFixture()]

       public class system

       {



           Program a1 = new Program

 
              [Test]

              public void Test()

{
    Program a1 = new Program();
   if(System=window7)
{
	Assert.AreEqual("a1.window7",windowBasic);
}
	
 

}

       }

This test case i have written. if the client change his system environment there should be not any effect on C# coding please check and telling me is there any change and is this the write one please help me out with the correction

Recommended Answers

All 2 Replies

Testing for equality in C# is done with == not = so your line 21 is wrong (and should give you a compile error).

And I'm not sure what you are trying to test for, so I can't help you write your test.

Hey

Thanks for reply.

Well can you please help me by tell perfect meaning of NUint i have done lots of RND but the most thing is i get stuck somewhere or other i have gown throw NUnit site even code project site. i am very new for this can you please help me by giving simple example of it.

And i have written this code even i know there is a mistake this code is for : if client is changing his System environment will this will effect my c# coding. Thats why i have written this code to check.

please tell me know about this i would be really very much thankful to you.

Thanks & Regards
Nemo

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.