To use HtmlUnit you need to use the RemoteWebDriver and pass in the desired capabilities for it.
IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.HtmlUnit())
and away you go. If you want the Firefox implementation to run use
IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.HtmlUnitWithJavaScript())
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…