public void RendersExpectedInputBoxWithImageForUrl() { const string Expected = "<img class=\"yubikeyCaption\" alt=\"YubiKey: \" id=\"yubiKeyImage\" src=\"http://target/action?42FE943EC8A64735A978D1F81D5FFD00\" /><input class=\"yubikeyInput\" id=\"yubiKey\" name=\"yubiKey\" text=\"\"/>"; var result = YubikeyExtensions.YubikeyInput(null, "http://target/action", new YubikeyConfiguration()); Assert.AreEqual(Expected, result.ToHtmlString()); }
public void RendersExpectedInputBox() { const string Expected = "<span class=\"yubikeyCaption\" >YubiKey: <span/><input class=\"yubikeyInput\" id=\"yubiKey\" name=\"yubiKey\" text=\"\"/>"; var result = YubikeyExtensions.YubikeyInput(null, new YubikeyConfiguration()); Assert.AreEqual(Expected, result.ToHtmlString()); }