コード例 #1
0
ファイル: NotifyTests.cs プロジェクト: vidyanayak/HelloPlus
        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);
        }
コード例 #2
0
 public void OnResponse(object result)
 {
     notifyController.Notify(result, NOTIFY_KEY);
 }