Here are the examples of the csharp api NUnit.Framework.Assert.IsTrue(bool) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
8492 Examples
19
Source : BondYieldEvaluatorTests.cs
with BSD 3-Clause "New" or "Revised" License
from ActuarialIntelligence
with BSD 3-Clause "New" or "Revised" License
from ActuarialIntelligence
[TestCaseSource(typeof(BondTestCases), "Details")]
public void replacedertCorrectYieldCalculation(BondDetails element)
{
var stripper = new HalfYearlyBondYield(element);
replacedert.IsTrue(isEqualWithinThreshold(dictionary[element.nominal], stripper.GetValue()));
}
19
Source : InterpolationTests.cs
with BSD 3-Clause "New" or "Revised" License
from ActuarialIntelligence
with BSD 3-Clause "New" or "Revised" License
from ActuarialIntelligence
[Test]
public void replacedertInterpolationTest1()
{
var flows = new ListTermCashflowSet(cashFlowSet, Term.MonthlyEffective);
var zSpread = new ZSpread(flows, 2000000m);
var result = zSpread.Spread();
var annuity = new Annuity(flows, 30);
var check = annuity.GetZSpreadPV(0.0132866482605499030537820089M);
replacedert.IsTrue(IsEqualWithinThreshold(result, 0.0132866482605499030537820089M));
replacedert.IsTrue(IsEqualWithinThreshold(check, 2000000m));
}
19
Source : FormsVideoPlayerTests.cs
with MIT License
from adamfisher
with MIT License
from adamfisher
[Test]
public void IsInitializedStateChangesWhenCallingInit()
{
var initializedBeforeCallingInit = FormsVideoPlayer.IsInitialized;
FormsVideoPlayer.Init();
var initializedAfterCallingInit = FormsVideoPlayer.IsInitialized;
replacedert.IsFalse(initializedBeforeCallingInit);
replacedert.IsTrue(initializedAfterCallingInit);
replacedert.AreEqual(VideoPlayerLicense.LicenseType, LicenseType.Trial);
}
19
Source : FormsVideoPlayerTests.cs
with MIT License
from adamfisher
with MIT License
from adamfisher
[Test]
public void NoLicenseKeyPreplacededToInit()
{
FormsVideoPlayer.Init();
replacedert.IsTrue(FormsVideoPlayer.IsInitialized, "FormsVideoPlayer.IsInitialized");
replacedert.AreEqual(VideoPlayerLicense.LicenseType, LicenseType.Trial, "License should be in trial mode.");
}
19
Source : FormsVideoPlayerTests.cs
with MIT License
from adamfisher
with MIT License
from adamfisher
[Test]
public void ValidLicenseKeyPreplacededToInit()
{
var licenseKey = "C79CA697B72791E4736758C520B92146945ECED1";
FormsVideoPlayer.Init(licenseKey);
replacedert.IsTrue(FormsVideoPlayer.IsInitialized, "FormsVideoPlayer.IsInitialized");
replacedert.AreEqual(VideoPlayerLicense.LicenseType, LicenseType.Full, "License should be in full mode.");
}
19
Source : FormsVideoPlayerTests.cs
with MIT License
from adamfisher
with MIT License
from adamfisher
[Test]
public void ValidLicenseKeyPreplacededToInit()
{
var licenseKey = "AB0FAF4003456ECFE1F606BB343AA306D3D153E9";
FormsVideoPlayer.Init(licenseKey);
replacedert.IsTrue(FormsVideoPlayer.IsInitialized, "FormsVideoPlayer.IsInitialized");
replacedert.AreEqual(VideoPlayerLicense.LicenseType, LicenseType.Full, "License should be in full mode.");
}
19
Source : WelcomePage.asserts.cs
with MIT License
from adamped
with MIT License
from adamped
public void replacedertPageIsLoaded()
{
replacedert.IsTrue(App.Query(_signUpButton).Any());
}
19
Source : FormsVideoPlayerTests.cs
with MIT License
from adamfisher
with MIT License
from adamfisher
[Test]
public void ValidLicenseKeyPreplacededToInit()
{
var licenseKey = "5C67C48C3C6B0E084EB9760E94F9E4C65417C6C1";
FormsVideoPlayer.Init(licenseKey);
replacedert.IsTrue(FormsVideoPlayer.IsInitialized, "FormsVideoPlayer.IsInitialized");
replacedert.AreEqual(VideoPlayerLicense.LicenseType, LicenseType.Full, "License should be in full mode.");
}
19
Source : NumericPropertyTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[TestCase(-32768)]
[TestCase(0)]
[TestCase(32767)]
public void TryValidate_ShouldValidateShort(short value)
{
NumericProperty<short> sut = CreateSut<short>();
sut.Value = value.ToString();
replacedert.IsTrue(sut.TryValidate(Subsreplacedute.For<IMessageBoxService>()));
}
19
Source : NumericPropertyTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[TestCase((ushort)0)]
[TestCase((ushort)65535)]
public void TryValidate_ShouldValidateUShort(ushort value)
{
NumericProperty<ushort> sut = CreateSut<ushort>();
sut.Value = value.ToString();
replacedert.IsTrue(sut.TryValidate(Subsreplacedute.For<IMessageBoxService>()));
}
19
Source : FileTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void TryValidate_ShouldSucceed_WhenFilePathIsSpecified()
{
mSut.FilePath = "filepath";
IMessageBoxService messageBoxService = Subsreplacedute.For<IMessageBoxService>();
replacedert.IsTrue(mSut.TryValidate(messageBoxService));
messageBoxService.DidNotReceive().ShowError(Arg.Any<string>());
}
19
Source : RequiredStringPropertyTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void TryValidate_ShouldReturnTrue_WhenValueSpecified()
{
mSut.Value = "whatev";
replacedert.IsTrue(mSut.TryValidate(Subsreplacedute.For<IMessageBoxService>()));
}
19
Source : RollingStyleTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void SelectedMode_ShouldFirePropChange_AndChange_WhenValueHasChanged()
{
bool fired = false;
mSut.PropertyChanged += (sender, args) => { fired = true; };
mSut.SelectedMode = RollingFileAppender.RollingMode.Date;
replacedert.IsTrue(fired);
replacedert.AreEqual(RollingFileAppender.RollingMode.Date, mSut.SelectedMode);
}
19
Source : StringMatchTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void TryValidate_ShouldCallValidate()
{
//Test sanity check
replacedert.IsFalse(mValidateCalled);
mSut.TryValidate(Subsreplacedute.For<IMessageBoxService>());
replacedert.IsTrue(mValidateCalled);
}
19
Source : TypeAttributeTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void IsReadOnly_ShouldBeTrue_AppenderDescriptorCtor()
{
replacedert.IsTrue(mSut.IsReadOnly);
}
19
Source : LayoutToEnabledConverterTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void Convert_ShouldReturnTrue_WhenPattern()
{
object value = mSut.Convert(LayoutDescriptor.Pattern, null, null, null);
replacedert.IsNotNull(value);
replacedert.IsTrue((bool)value);
}
19
Source : ParamModelTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void Remove_ShouldInvokeRemove()
{
XmlDoreplacedent xmlDoc = new XmlDoreplacedent();
bool shown = false;
mSut = new ParamModel(xmlDoc.CreateElement(Log4NetXmlConstants.Param),
remove: model =>
{
if (model == mSut)
{
shown = true;
}
});
mSut.Remove.Execute(null);
replacedert.IsTrue(shown);
}
19
Source : ParamModelTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[TestCase(nameof(ParamModel.Name))]
[TestCase(nameof(ParamModel.Type))]
[TestCase(nameof(ParamModel.Value))]
public void NodeSet_ShouldFireOnPropertyChanged(string propName)
{
bool fired = false;
mSut.PropertyChanged += (sender, args) =>
{
if (args.PropertyName == propName)
{
fired = true;
}
};
XmlDoreplacedent xmlDoc = new XmlDoreplacedent();
xmlDoc.LoadXml("<param name=\"someName\" value=\"someValue\" type=\"someType\" />");
mSut.Node = xmlDoc.FirstChild;
replacedert.IsTrue(fired);
}
19
Source : AddSaveStrategyTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void Execute_ShouldAddModel_AndShouldreplacedignNode_WhenModelNodeIsNull()
{
ModelBase model = new RendererModel(null);
XmlElement newElement = new XmlDoreplacedent().CreateElement("element");
bool addCalled = false;
ISaveStrategy sut = new AddSaveStrategy<ModelBase>(model, modelParam => { addCalled = true; }, newElement);
sut.Execute();
replacedert.IsTrue(addCalled);
replacedert.AreSame(newElement, model.Node);
}
19
Source : EqualityTests.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void EquatableEquals_ShouldReturnTrue_WhenSameInstance()
{
replacedert.IsTrue(Sut.Equals(Sut));
}
19
Source : EqualityTests.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void EquatableEquals_ShouldReturnTrue_WhenDifferentInstance_ButStructurallyEqual()
{
replacedert.IsTrue(Sut.Equals(GetOtherEqual()));
}
19
Source : EqualityTests.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void ObjectEquals_ShouldReturnTrue_WhenSameInstance()
{
replacedert.IsTrue(Sut.Equals((object)Sut));
}
19
Source : EqualityTests.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void ObjectEquals_ShouldReturnTrue_WhenDifferentInstance_ButStructurallyEqual()
{
replacedert.IsTrue(Sut.Equals((object)GetOtherEqual()));
}
19
Source : XmlUtilitiesTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void FindAvailableAppenderRefLocations_ShouldNotLoadRoot_WhenNonexistent()
{
XmlDoreplacedent xmlDoc = new XmlDoreplacedent();
xmlDoc.LoadXml("<log4net>\n" +
" <appender name=\"appender0\">\n" +
" <appender-ref ref=\"appender1\" />\n" +
" <appender-ref ref=\"appender2\" />\n" +
" </appender>\n" +
" <appender name=\"appender1\">\n" +
" <appender-ref ref=\"appender2\" />\n" +
" </appender>\n" +
" <appender name=\"appender2\">\n" +
" </appender>\n" +
" <appender name=\"appender3\">\n" +
" </appender>\n" +
" <appender name=\"asyncAppender\" type=\"Log4Net.Async.AsyncForwardingAppender,Log4Net.Async\">\n" +
" <appender-ref ref=\"appender0\" />\n" +
" </appender>\n" +
"</log4net>");
IEnumerable<IAcceptAppenderRef> refs = XmlUtilities.FindAvailableAppenderRefLocations(xmlDoc.FirstChild);
replacedert.AreEqual(1, refs.Count());
replacedert.IsTrue(refs.All(r => r.Node.Name != "root"));
}
19
Source : NumericPropertyTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[TestCase(-2147483648)]
[TestCase(0)]
[TestCase(2147483647)]
public void TryValidate_ShouldValidateAnInt(int value)
{
NumericProperty<int> sut = CreateSut<int>();
sut.Value = value.ToString();
replacedert.IsTrue(sut.TryValidate(Subsreplacedute.For<IMessageBoxService>()));
}
19
Source : DatePatternTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void TryValidate_ShouldReturnTrue_WhenValueIsNotNullOrEmpty()
{
mSut.Value = "yyyyMMdd";
replacedert.IsTrue(mSut.TryValidate(Subsreplacedute.For<IMessageBoxService>()));
}
19
Source : FileTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void FilePath_ShouldFirePropChange_AndChange_WhenValueHasChanged()
{
mSut.FilePath = "filepath";
bool fired = false;
mSut.PropertyChanged += (sender, args) => { fired = true; };
mSut.FilePath = "newfilepath";
replacedert.IsTrue(fired);
replacedert.AreEqual("newfilepath", mSut.FilePath);
}
19
Source : FileTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void Overwrite_ShouldFirePropChange_AndChange_WhenValueHasChanged()
{
mSut.Overwrite = true;
bool fired = false;
mSut.PropertyChanged += (sender, args) => { fired = true; };
mSut.Overwrite = false;
replacedert.IsTrue(fired);
replacedert.IsFalse(mSut.Overwrite);
}
19
Source : FileTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void PatternString_ShouldFirePropChange_AndChange_WhenValueHasChanged()
{
mSut.PatternString = true;
bool fired = false;
mSut.PropertyChanged += (sender, args) => { fired = true; };
mSut.PatternString = false;
replacedert.IsTrue(fired);
replacedert.IsFalse(mSut.PatternString);
}
19
Source : FixTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void SelectedPreset_ShouldFirePropChange_WhenChanged()
{
bool fired = false;
mSut.PropertyChanged += (sender, args) => { fired = true; };
mSut.SelectedPreset = "other";
replacedert.IsTrue(fired);
}
19
Source : IncomingRefsTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void Ctor_ShouldLoadAvailableRefs()
{
replacedert.AreEqual(2, mSut.RefsCollection.Count);
replacedert.IsTrue(mSut.RefsCollection.All(r => !r.IsEnabled)); //Locations aren't enabled until a load is done with this appender's name
replacedert.IsTrue(mSut.RefsCollection.All(r => r.Node.Name == "root" || r.Node.Attributes?["type"].Value == "Log4Net.Async.AsyncForwardingAppender,Log4Net.Async"));
}
19
Source : IncomingRefsTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void Load_ShouldLoadEnabledRefs()
{
mNameProperty.Load(mXmlDoc.FirstChild["appender"]);
mSut.Load(mXmlDoc.FirstChild["appender"]);
replacedert.AreEqual(2, mSut.RefsCollection.Count);
replacedert.AreEqual(1, mSut.RefsCollection.Count(r => !r.IsEnabled));
replacedert.IsTrue(mSut.RefsCollection.All(r => r.Node.Name == "root" || r.Node.Attributes?["type"].Value == "Log4Net.Async.AsyncForwardingAppender,Log4Net.Async"));
}
19
Source : IncomingRefsTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void Load_ShouldNotLoadRefToItself()
{
const string xml = "<log4net>\n" +
" <appender name=\"asyncAppender\" type=\"Log4Net.Async.AsyncForwardingAppender,Log4Net.Async\">\n" +
" <appender-ref ref=\"appender0\" />\n" +
" </appender>\n" +
" <appender name=\"appender0\">\n" +
" <appender-ref ref=\"appender1\" />\n" +
" <appender-ref ref=\"appender2\" />\n" +
" </appender>\n" +
" <appender name=\"appender1\">\n" +
" <appender-ref ref=\"appender2\" />\n" +
" </appender>\n" +
" <appender name=\"appender2\">\n" +
" </appender>\n" +
" <appender name=\"appender3\">\n" +
" </appender>\n" +
" <root>\n" +
" <appender-ref ref=\"asyncAppender\" />\n" +
" </root>\n" +
"</log4net>";
ReadOnlyCollection<IProperty> properties = new ReadOnlyCollection<IProperty>(new List<IProperty>());
IElementConfiguration appenderConfiguration = GetAppenderConfiguration(mXmlDoc, xml);
mNameProperty = new Name(appenderConfiguration);
mSut = new IncomingRefs(mNameProperty, appenderConfiguration);
replacedert.AreEqual(1, mSut.RefsCollection.Count);
replacedert.IsTrue(mSut.RefsCollection.All(r => !r.IsEnabled)); //Locations aren't enabled until a load is done with this appender's name
replacedert.IsTrue(mSut.RefsCollection.All(r => r.Node.Name == "root"));
}
19
Source : IncomingRefsTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void Load_ShouldNotLoadRoot_WhenNonexistent()
{
const string xml = "<log4net>\n" +
" <appender name=\"appender0\">\n" +
" <appender-ref ref=\"appender1\" />\n" +
" <appender-ref ref=\"appender2\" />\n" +
" </appender>\n" +
" <appender name=\"appender1\">\n" +
" <appender-ref ref=\"appender2\" />\n" +
" </appender>\n" +
" <appender name=\"appender2\">\n" +
" </appender>\n" +
" <appender name=\"appender3\">\n" +
" </appender>\n" +
" <appender name=\"asyncAppender\" type=\"Log4Net.Async.AsyncForwardingAppender,Log4Net.Async\">\n" +
" <appender-ref ref=\"appender0\" />\n" +
" </appender>\n" +
"</log4net>";
ReadOnlyCollection<IProperty> properties = new ReadOnlyCollection<IProperty>(new List<IProperty>());
IElementConfiguration appenderConfiguration = GetAppenderConfiguration(mXmlDoc, xml);
mNameProperty = new Name(appenderConfiguration);
mSut = new IncomingRefs(mNameProperty, appenderConfiguration);
replacedert.AreEqual(1, mSut.RefsCollection.Count);
replacedert.IsTrue(mSut.RefsCollection.All(r => !r.IsEnabled)); //Locations aren't enabled until a load is done with this appender's name
replacedert.IsTrue(mSut.RefsCollection.All(r => r.Node.Name != "root"));
}
19
Source : LayoutTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[TestCase("")]
[TestCase(null)]
public void TryValidate_ShouldReturnTrue_WhenPatternIsNullOrEmpty_WhenNoneIsSelected(string pattern)
{
mSut.SelectedLayout = LayoutDescriptor.None;
mSut.Pattern = pattern;
replacedert.IsTrue(mSut.TryValidate(Subsreplacedute.For<IMessageBoxService>()));
}
19
Source : LayoutTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void Pattern_ShouldFirePropChange_WhenValueHasChanged()
{
bool fired = false;
mSut.PropertyChanged += (sender, args) => { fired = true; };
mSut.Pattern = " ";
replacedert.IsTrue(fired);
}
19
Source : LayoutTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void SelectedLayout_ShouldFirePropChange_WhenValueHasChanged()
{
bool fired = false;
mSut.PropertyChanged += (sender, args) => { fired = true; };
mSut.SelectedLayout = LayoutDescriptor.Pattern;
replacedert.IsTrue(fired);
}
19
Source : LayoutTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void TryValidate_ShouldReturnTrue_WhenPatternIsNotNullOrEmpty()
{
replacedert.IsTrue(mSut.TryValidate(Subsreplacedute.For<IMessageBoxService>()));
}
19
Source : MaximumFileSizeTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[TestCase("10KB")]
[TestCase("10MB")]
[TestCase("10GB")]
public void TryValidate_ShouldSucceed(string value)
{
mSut.Value = value;
IMessageBoxService messageBoxService = Subsreplacedute.For<IMessageBoxService>();
replacedert.IsTrue(mSut.TryValidate(messageBoxService));
messageBoxService.DidNotReceive().ShowError(Arg.Any<string>());
}
19
Source : PropertyMatchFilterTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void Initialize_ShouldSetIsFocusedToTrue()
{
mSut.Initialize();
RequiredStringProperty key = (RequiredStringProperty)mSut.Properties.Single(p => p.GetType() == typeof(RequiredStringProperty));
replacedert.IsTrue(key.IsFocused);
}
19
Source : AditivityTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void Value_ShouldDefaultToTrue()
{
replacedert.IsTrue(mSut.Value);
}
19
Source : NameTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void Changed_ShouldBeTrue_WhenValueDoesNotMatchOriginal()
{
XmlDoreplacedent xmlDoc = new XmlDoreplacedent();
xmlDoc.LoadXml($"<appender name=\"{OriginalName}\" type=\"log4net.Appender.ColoredConsoleAppender\">\r\n" +
"</appender>");
mSut.Load(xmlDoc.FirstChild);
mSut.Value = "someOtherName";
replacedert.IsTrue(mSut.Changed);
}
19
Source : NameTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void IsFocused_ShouldBeTrue()
{
replacedert.IsTrue(mSut.IsFocused);
}
19
Source : NameTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void TryValidate_ShouldNotShowCollisionMessageBox_WhenAppenderNameCollides_ButIsSameAppender()
{
mSut.Load(mOriginalAppender);
IMessageBoxService messageBoxService = Subsreplacedute.For<IMessageBoxService>();
replacedert.IsTrue(mSut.TryValidate(messageBoxService));
messageBoxService.DidNotReceive().ShowError(Arg.Any<string>());
}
19
Source : NameTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void TryValidate_ShouldNotShowCollisionMessageBox_WhenNoAppenderNamesCollide()
{
mSut.Value = OriginalName;
mXmlDoc.CreateElementWithAttribute("appender", "name", "otherName").AppendTo(mLog4NetNode);
IMessageBoxService messageBoxService = Subsreplacedute.For<IMessageBoxService>();
replacedert.IsTrue(mSut.TryValidate(messageBoxService));
messageBoxService.DidNotReceive().ShowError(Arg.Any<string>());
}
19
Source : NameTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void TryValidate_ShouldNotShowCollisionMessageBox_WhenOtherAppenderHasNoName()
{
mSut.Value = "appName";
mXmlDoc.CreateElement("appender").AppendTo(mLog4NetNode);
IMessageBoxService messageBoxService = Subsreplacedute.For<IMessageBoxService>();
replacedert.IsTrue(mSut.TryValidate(messageBoxService));
messageBoxService.DidNotReceive().ShowError(Arg.Any<string>());
}
19
Source : NameTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void TryValidate_ShouldNotShowUnreplacedignedMessageBox_WhenValueIsNotNullOrEmpty_AndReturnTrue()
{
mSut.Value = "name";
IMessageBoxService messageBoxService = Subsreplacedute.For<IMessageBoxService>();
replacedert.IsTrue(mSut.TryValidate(messageBoxService));
messageBoxService.DidNotReceive().ShowError(Arg.Any<string>());
}
19
Source : RenderedClassTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void TryValidate_ShouldNotShowUnreplacedignedMessageBox_WhenValueIsNotNullOrEmpty_AndReturnTrue()
{
mSut.Value = "clreplaced";
IMessageBoxService messageBoxService = Subsreplacedute.For<IMessageBoxService>();
replacedert.IsTrue(mSut.TryValidate(messageBoxService));
messageBoxService.DidNotReceive().ShowError(Arg.Any<string>());
}
19
Source : LoggerMatchFilterTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[Test]
public void Initialize_ShouldSetIsFocusedToTrue()
{
mSut.Initialize();
RequiredStringProperty loggerToMatch = (RequiredStringProperty)mSut.Properties.Single(p => p.GetType() == typeof(RequiredStringProperty));
replacedert.IsTrue(loggerToMatch.IsFocused);
}
19
Source : FilterDescriptorTest.cs
with MIT License
from alexleen
with MIT License
from alexleen
[TestCaseSource(nameof(sFilterData))]
public void EachFilter_ShouldBeFoundByTypeNamespace(string name, FilterType type, string typeNamespace, string elementName)
{
replacedert.IsTrue(FilterDescriptor.TryFindByTypeNamespace(typeNamespace, out FilterDescriptor filter));
replacedert.IsTrue(AreEqual(filter, name, type, typeNamespace, elementName));
}
See More Examples