I'm running Selenium with C# for my automation testing on multiple browsers (IE, FF, Chrome) and there is one part of my test that passes for Chrome but not Firefox.

Is there a way to detect the browser type that is currently being used during the automated test?