コード例 #1
0
        public void ReturnsNothing_WhenCountryIsNothing()
        {
            CountryToUriFlagConverter converter = new CountryToUriFlagConverter();
            string output = (string)converter.Convert(string.Empty, typeof(string), null, CultureInfo.InvariantCulture);

            Assert.AreEqual(string.Empty, output);
        }
コード例 #2
0
        public void ProvidesRelativeUriForBMPImage_BasedOnCountryValue(string country, string expectedOutput)
        {
            CountryToUriFlagConverter converter = new CountryToUriFlagConverter();
            string output = (string)converter.Convert(country, typeof(string), null, CultureInfo.InvariantCulture);

            Assert.AreEqual(output, expectedOutput);
        }