예제 #1
0
        public void ConvertSDKToAPI()
        {
            sdkHandover1 = CreateTypicalSDKHandover();
            apiHandover1 = new HandoverConverter(sdkHandover1).ToAPIHandover();

            Assert.IsNotNull(apiHandover1);
            Assert.AreEqual(apiHandover1.Href, sdkHandover1.Href);
            Assert.AreEqual(apiHandover1.Text, sdkHandover1.Text);
            Assert.AreEqual(apiHandover1.Title, sdkHandover1.Title);
        }
예제 #2
0
        public void ConvertSDKToSDK()
        {
            sdkHandover1 = CreateTypicalSDKHandover();
            sdkHandover2 = new HandoverConverter(sdkHandover1).ToSDKHandover(lang);

            Assert.IsNotNull(sdkHandover2);
            Assert.AreEqual(sdkHandover2.Href, sdkHandover1.Href);
            Assert.AreEqual(sdkHandover2.Text, sdkHandover1.Text);
            Assert.AreEqual(sdkHandover2.Title, sdkHandover1.Title);
        }
예제 #3
0
        public void ConvertAPIToSDK()
        {
            apiHandover1 = CreateTypicalAPILink();
            sdkHandover1 = new HandoverConverter(apiHandover1).ToSDKHandover(lang);

            Assert.IsNotNull(sdkHandover1);
            Assert.AreEqual(sdkHandover1.Language, lang);
            Assert.AreEqual(sdkHandover1.Href, apiHandover1.Href);
            Assert.AreEqual(sdkHandover1.Text, apiHandover1.Text);
            Assert.AreEqual(sdkHandover1.Title, apiHandover1.Title);
        }
예제 #4
0
 public void ConvertNullSDKToSDK()
 {
     sdkHandover1 = null;
     converter    = new HandoverConverter(sdkHandover1);
     Assert.IsNull(converter.ToSDKHandover("fr"));
 }
예제 #5
0
 public void ConvertNullSDKToAPI()
 {
     sdkHandover1 = null;
     converter    = new HandoverConverter(sdkHandover1);
     Assert.IsNull(converter.ToAPIHandover());
 }