awesome-inc / nedifis Goto Github PK
View Code? Open in Web Editor NEWFramework for enhanced testing using NUnit and NSubstitute.
License: MIT License
Framework for enhanced testing using NUnit and NSubstitute.
License: MIT License
A because property is missing.
When using NEdifis for testing in a custom deployable project or library the TestedBy-Attribute imposes a runtime dependency on NEdifis, i.e. users of my lib need NEdifis as well when instantiating production code.
I don't want to redistribute NEdifis at runtime.
it would be useful to make the convention implementations accessble.
Well ,the test trace listener should be public!
The convention interface is designed around returning a bool and evaluating a "Hint on fail"-property. For simple checks this is sufficient. For more complex conventions checking multiple conditions a single hint will not be as much help for a user.
It seems that exceptions are better suited for this. Suggestion is to redesign the contract to void (convention passed) and throw (convention failed)
Though it is mentioned in the blog post on aweseome-incremented.blogspot.de it does not seem to work either with R# or with NCrunch
I seem to have some issues since I use nuget 3 regarding some root element issues during installing nedifis.
The nuspec files has no version numbers of fluentassertions, nsubstitute and nunit defined. with a simple "install-package" it causes the system to install a very old version of the dependencies.
Right now, there seems to be no option to use a specific instance when constructors have multiple parameters of the same interface, i.e.
public MyClass(IDependency dep1, IDependency dep2, ...) { ... }
ctx.For<IDependency>("dep2");
is possible but not
ctx.Use<IDependency>("dep2", dep2);
a test should resolve or be related to multiple tickets. right now, this is not possible
[Test]
[Ticket(11144)]
[Ticket(11690)]
public void Register_templates()
{
_container.ShouldResolve<ITemplateExtender, CoolTemplates>();
}
Stamps an assembly with git information based on SemVer.
path: /NEdifis/NEdifis/packages.config
Library home page: https://api.nuget.org/packages/gitversiontask.4.0.0.nupkg
Dependency Hierarchy:
Found in HEAD commit: c0f599f5f8a9b9ece2377253b6da96a9aae81b7a
YamlDotNet version 4.3.2 and earlier contains a Insecure Direct Object Reference vulnerability in The default behavior of Deserializer.Deserialize() will deserialize user-controlled types in the line "currentType = Type.GetType(nodeEvent.Tag.Substring(1), throwOnError: false);" and blindly instantiates them. that can result in Code execution in the context of the running process. This attack appear to be exploitable via Victim must parse a specially-crafted YAML file. This vulnerability appears to have been fixed in 5.0.0.
Publish Date: 2018-07-13
URL: CVE-2018-1000210
Base Score Metrics:
Step up your Open Source Security Game with WhiteSource here
nedifis convention checks all classes including classes generated by the compiler for closures and anonymous types. this does not makes sense.
I stumbled upon the PluralSight course on AutoFixture. How does NEdifis relate to AutoFixture
By now the default conventions (IVerifyConvention) apply on all types. A common scenario would be to exclude Enums or DTOs without logic from "AllClassesNeedATest"-convention. Maybe a default base implementation should support exclude-predicates, injectable on constructor, i.e.
public abstract VerifyConventionBase : IVerifyConvention
{
protected VerifyConventionBase(Func<Type,bool> typeSelector = null)
{
_typeSelector = typeSelector ?? (t => true);
}
public bool FulfilsConvention(Type type)
{
return _typeSelector(t) && ...
}
}
it might be useful to add a ticket id to test, especially if it fixes a reported issue.
some kind of "trace listener" would be good.
var traceListener = new TestTraceListener();
Trace.Listeners.Add(traceListener);
try
{
// now do something cool and awesome with Trace.WriteLine()
// and we can check for this
traceListener.MessagesFor(TraceLevel.Warning).Single().Should().StartWith("Could not read CSV");
}
finally
{
Trace.Listeners.Remove(traceListener);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.