Giter Club home page Giter Club logo

Comments (7)

GeertvanHorrik avatar GeertvanHorrik commented on June 17, 2024

Thanks for reporting! We will try to work on this for the next release.

If you want, you can help out by either creating a PR (even if it's only the unit test, we can do the other implementations) or by considering supporting the open collective.

from catel.fody.

SelvinPL avatar SelvinPL commented on June 17, 2024

How should I name commit ? I did 2 files named GH0361 in respected folders with

namespace Catel.Fody.Tests.Repros
{
    using System;
    using NUnit.Framework;

    [TestFixture]
    public class GH0361TestFixture
    {
        [TestCase]
        public void WeavingWithSetValueMethodInViewModel()
        {
            var viewModelType = AssemblyWeaver.Instance.Assembly.GetType("Catel.Fody.TestAssembly.Bugs.GH0361.MyDerivedViewModel");
            var viewModel = Activator.CreateInstance(viewModelType) as dynamic;

            viewModel.Property = new object();
        }
    }
}

and

namespace Catel.Fody.TestAssembly.Bugs.GH0361
{
    using Catel.MVVM;

    public class MyDerivedViewModel : ViewModelBase
    {
        [Model]
        public TestModel Model { get; set; }
        [ViewModelToModel]
        public object Property { get; set; }

        public void SetValue(string s)
        {

        }
    }

    public class TestModel
    {
        public object Property { get; set; }
    }
}

code

from catel.fody.

GeertvanHorrik avatar GeertvanHorrik commented on June 17, 2024

To create a pull request, you would have to create a fork (right top button in GitHub). Then I personally prefer to create a separate branch (e.g. pr/setvalue-fix) and feel free to name the commits whatever feels right.

Once the PR is in place, we can commit to it as well and finalize the feature.

from catel.fody.

SelvinPL avatar SelvinPL commented on June 17, 2024

I did only Unit test

from catel.fody.

GeertvanHorrik avatar GeertvanHorrik commented on June 17, 2024

That's perfect. If you can create the fork + branch + unit test, we can implement the fix. We will merge once it's fully complete.

from catel.fody.

GeertvanHorrik avatar GeertvanHorrik commented on June 17, 2024

A good commit name could be: "Add unit test for SetValue override selection issue"

from catel.fody.

GeertvanHorrik avatar GeertvanHorrik commented on June 17, 2024

Closing as this is now fixed.

from catel.fody.

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.