コード例 #1
0
		public void ConvertAPIToAPI()
		{
			apiPackage1 = CreateTypicalAPIPackage();
			converter = new DocumentPackageConverter(apiPackage1);
			apiPackage2 = converter.ToAPIPackage();

			Assert.IsNotNull(apiPackage2);
			Assert.AreEqual(apiPackage2, apiPackage1);
		}
コード例 #2
0
		public void ConvertNullAPIToAPI()
		{
			apiPackage1 = null;
			converter = new DocumentPackageConverter(apiPackage1);
			Assert.IsNull(converter.ToAPIPackage());
		}
コード例 #3
0
		public void ConvertNullSDKToAPI()
		{
			sdkPackage1 = null;
			converter = new DocumentPackageConverter(sdkPackage1);
			Assert.IsNull(converter.ToAPIPackage());
		}