BloomTests.Book.BookCopyrightAndLicenseTests.GetLicenseMetadata_BrandingHasLicenseAndNotesButNotCopyright_MetadataMatches C# (CSharp) Method

GetLicenseMetadata_BrandingHasLicenseAndNotesButNotCopyright_MetadataMatches() private method

		public void GetLicenseMetadata_BrandingHasLicenseAndNotesButNotCopyright_MetadataMatches()
		{
			File.WriteAllText(_pathToBrandingSettingJson,
				@"{
					'LicenseUrl':'http://creativecommons.org/licenses/by/3.0/igo/',
					'LicenseRightsStatement': 'These are custom notes.'
				}");
			var dataDivContent = @"";
			var metadata = GetMetadata(dataDivContent);
			Assert.AreEqual("http://creativecommons.org/licenses/by/3.0/igo/", metadata.License.Url);
			Assert.AreEqual("These are custom notes.", metadata.License.RightsStatement);
			Assert.That(metadata.CopyrightNotice, Is.Null.Or.Empty);
		}
BookCopyrightAndLicenseTests