public void GetMessageCodeArgsDefaultsToCurrentUICulture() { Expect.Call(mockMsgSource.GetMessage(MSGCODE, CultureInfo.CurrentUICulture, MSGARGS)).Return(MSGRESULT); mocks.ReplayAll(); MessageSourceAccessor msgSourceAccessor = new MessageSourceAccessor(mockMsgSource); Assert.AreEqual(MSGRESULT, msgSourceAccessor.GetMessage(MSGCODE, MSGARGS)); }
public void GetMessageResolvableDefaultsToCurrentUICulture() { Expect.Call(mockMsgSource.GetMessage(mockMsgSourceResolvable, CultureInfo.CurrentUICulture)).Return(MSGRESULT); mocks.ReplayAll(); MessageSourceAccessor msgSourceAccessor = new MessageSourceAccessor(mockMsgSource); Assert.AreEqual(MSGRESULT, msgSourceAccessor.GetMessage(mockMsgSourceResolvable)); }
public void GetMessageCodeArgs() { Expect.Call(mockMsgSource.GetMessage(MSGCODE, MSGCULTURE, MSGARGS)).Return(MSGRESULT); mocks.ReplayAll(); MessageSourceAccessor msgSourceAccessor = new MessageSourceAccessor(mockMsgSource, MSGCULTURE); Assert.AreEqual(MSGRESULT, msgSourceAccessor.GetMessage(MSGCODE, MSGARGS)); }
public void GetMessageResolvableCulture() { Expect.Call(mockMsgSource.GetMessage(mockMsgSourceResolvable, MSGCULTURE)).Return(MSGRESULT); mocks.ReplayAll(); MessageSourceAccessor msgSourceAccessor = new MessageSourceAccessor(mockMsgSource); Assert.AreEqual(MSGRESULT, msgSourceAccessor.GetMessage(mockMsgSourceResolvable, MSGCULTURE)); }