While instantiate a VSTO base class in my unit test project i have got Null Reference exception. Below is the code that i have used and snapshot of the error which i have got while debug the test.
public UnitTest1(): base(Globals.Factory.GetRibbonFactory())
{
}
This add-in is work on Visio Application and I am actually new to this add-in development and not familiar how would i unit test my code for the add-in.

You cannot instantiate VSTO add-in in a Unit Test project. More precisely, you can, but it's hard. There are much easier ways, for example, you can extract the functionality from the VSTO-related classes to "clean" classes and instantiate them instead. For example, if you have:
You could go for something like this instead: