public void GetAllProducts_Exception() { try { BaseData.GetAllProducts(); } catch (BaseDataMethod e) { Assert.Equal(e.Message, BaseDataMethod.eMessage); } }