This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using Moq; | |
namespace TestDoubles.Examples.TestSpecificSubclass.ProtectedMember | |
{ | |
[TestClass] | |
public class Player_Test | |
{ | |
[TestMethod] | |
public void Should_be_able_to_roll_die_wtih_max_face_value() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example of usage | |
[TestMethod] | |
[AspNetDevelopmentServer("WcfService", "Physical path to your WCF project")] | |
public void TestMethod1() | |
{ | |
ServiceClient target = new ServiceClient(); | |
Assert.IsTrue(WcfWebServiceHelper.TryUrlRedirection(target, TestContext, "WcfService")); | |
int value = 0; | |
string expected = "You entered: 0"; | |
string actual; |