Giter VIP home page Giter VIP logo

Comments (5)

brannon avatar brannon commented on June 2, 2024 1

@StevenLiekens thanks for the bug report. You're correct that this should just work. I'll add this to our backlog. We also accept pull requests 😉 .

from azure-notificationhubs-dotnet.

marstr avatar marstr commented on June 2, 2024 1

Looks like this was completed by #91. I'm closing out this issue.

from azure-notificationhubs-dotnet.

sliekens avatar sliekens commented on June 2, 2024

Hey @brannon, thanks for the reply. Given that I want to implement the ToString method and submit a PR, what tests do you expect me to write? I'm not sure how this class should handle garbage values like SharedAccessKeyName = null or "" or "🗑️". I'm also a little confused about the test project layout. Should the test go inside the DotNetCore.Tests project and then be linked from the DotNetFramework.Tests project?

from azure-notificationhubs-dotnet.

marstr avatar marstr commented on June 2, 2024

I'm not @brannon, but my $0.02 on this:

I'm not sure how this class should handle garbage values like SharedAccessKeyName = null or "" or "🗑️".

I would not have the ToString be responsible for flagging garbage values. Rather, I would just go ahead and print out the results of those properties as stored in the properties. If we want/need validation in the future, it should live in the property setters.

Should the test go inside the DotNetCore.Tests project and then be linked from the DotNetFramework.Tests project?

I believe you have this right. Looking at the DotNetFramework.Tests project, the only items that are included in it are actually just linked in from the DotNetCore project. Following that pattern makes sense to me.

from azure-notificationhubs-dotnet.

brannon avatar brannon commented on June 2, 2024

Thanks @marstr for chiming in. I agree that ToString should just format the property values as set in the properties. No need to validate the properties at this time.

The idea with the test projects is to provide a common set of tests that we can run for both .NET Core and .NET Framework targets.

from azure-notificationhubs-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.