neo-sharp

neo-sharp

  • Docs
  • English
    • Português (Brasil)

›Development

Home

  • Introduction
  • Basic Guide
  • Intermediate Guide
  • Advanced Guide

Blockchain

  • Block
  • Blockchain
  • Cryptography
  • Hash
  • Header
  • Unspent Transaction Output

NEO

  • Compiler
  • Consensus
  • Contract
  • Fees
  • GAS
  • NEO VM
  • NEP
  • Network Protocol
  • Nodes
  • RCP
  • Transaction Types
  • Verification
  • Wallets
  • Witness

NEO-Sharp

  • Modules
  • Application Module
  • Configuration Module
  • Core Module
  • Logging Module
  • Persistence Module
  • Serialization Module
  • Wallet Module

Development

  • Best Practices
  • Code Style
  • Dependency Injection
  • Unit Test

Tools

  • .NET Core
  • Documentation
  • Git / GitHub
  • NEO Tools
  • Platform

Unit Test

Mocking Classes

Test

Testing highly enforced in neo-sharp. Your code can be rejected if you haven't written tests, even if it works perfectly.

Unit testing is also useful to prevent that future changes in other parts of the code affect the behavior of other features.

Since our code uses mostly Interfaces instead of concrete implementations, is very easy to mock the behavior of a class, making it easy to test only the particular parts of the code you are interested in.

NEO-Sharp aims for 90% of test coverage, and we use tools like travis and codecov to ensure this coverage.

Code Coverage

Travis

← Dependency Injection.NET Core →
  • Mocking Classes
  • Test
  • Code Coverage
  • Travis
neo-sharp
Docs
Getting StartedGuides
Community
DiscordRedditFacebookTwitterMedium
More
NEOCoZStar