public void GetPrefix() { var mock = new Mock <IGuildData>(MockBehavior.Strict); mock.Setup(x => x.GetGuildConfig(0)).Returns(testConfig); var guildService = new GuildService(mock.Object); char actual = guildService.GetPrefix(0); char expected = '-'; Assert.Equal(expected, actual); }