title: Assert, Verify and other commands in Selenium WebDriver using C#
body: <p>I have almost searched every forum/website related to Selenium WebDriver but still unable to find the solution that how to user Assertions and Verifications in Selenium WebDriver using C#.</p>
  
  <p>Here is my code where I just want to put a sample assertion in the code written below.</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using OpenQA.Selenium;
  using OpenQA.Selenium.Chrome;
  using OpenQA.Selenium.Support.UI;
  
  
  namespace Healthfleet
  {
      class Login
      {
          static void Main(string[] args)
          {
              IWebDriver driver = new ChromeDriver(@"D:\Downloads");
              driver.Navigate().GoToUrl("https://test.com/");
              IWebElement username = driver.FindElement(By.Id("username"));
              IWebElement password = driver.FindElement(By.Id("password"));
              username.SendKeys("test@test.test");
              password.SendKeys("test");
              IWebElement loginButton = driver.FindElement(By.Id("Login"));
              loginButton.Click();
          }
      }
  }
  </code></pre>
  
  <p>I need to check if username = test or not by using assertion but I am unable to find any Assert class or method.</p>
  
  <p>Am I missing some namespace which contains the Assert class or any other idea?</p>