コード例 #1
0
        public void GetUnknownGenericReponse()
        {
            var explicitInterface = new ExplicitInterfacePractice();

            var result = explicitInterface.GetReponse <IDunnoResponse>();

            Assert.IsTrue(result == "omega");
        }
コード例 #2
0
        public void GetBravoReponse()
        {
            var explicitInterface = new ExplicitInterfacePractice();

            var result = explicitInterface.GetBetaReponse();

            Assert.IsTrue(result == "beta");
        }
コード例 #3
0
        public void GetGenericReponse()
        {
            var explicitInterface = new ExplicitInterfacePractice();

            var result = explicitInterface.GetReponse <IAlphaReponse>();

            Assert.IsTrue(result == "alpha");
        }
コード例 #4
0
        public void GetReponse()
        {
            var explicitInterface = new ExplicitInterfacePractice();

            var result = explicitInterface.GetReponse();

            Assert.IsTrue(result == "omega");
        }