public void NotifyTest() { _configurationManager.Setup(cm => cm.GetAppSetting("NotifierType")).Returns("none"); string result = notify.Notify(_configurationManager.Object); //Microsoft.VisualStudio.TestTools.UnitTesting.Assert.IsInstanceOfType(typeof(string),typeof(result)); //Microsoft.VisualStudio.TestTools.UnitTesting.Assert.IsNotNull(result); var msgString = Language.GetFromResourceFile("BaseHelloMessage", "en-US"); NUnit.Framework.Assert.AreSame(msgString, result); NUnit.Framework.Assert.IsNotNull(result); //Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreSame(msgString, result); // Microsoft.VisualStudio.TestTools.UnitTesting.Assert.IsNotNull(result); }
public void OnResponse(object result) { notifyController.Notify(result, NOTIFY_KEY); }